Skip to content

Commit

Permalink
Fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-jonsson committed Nov 13, 2024
1 parent a3359dd commit ac47082
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion front/web/js.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern void js_puts(const char*, int);
extern void js_set_border_color(unsigned int);
extern void js_disk_activity(int, void*);
extern void js_disk_read(void*, unsigned int, unsigned int);
extern void js_disk_write(void*, unsigned int, unsigned int);
extern void js_disk_write(const void*, unsigned int, unsigned int);
extern unsigned int js_disk_size(void);
extern void js_shutdown(void);

Expand Down
4 changes: 2 additions & 2 deletions front/web/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ static int log_wrapper(const char *fmt, ...) {

static bool read_sector(vxt_system *s, void *fp, unsigned index, vxt_byte *buffer) {
(void)s; (void)fp;
js_disk_read(buffer, VXTU_SECTOR_SIZE, (int)index * VXTU_SECTOR_SIZE);
js_disk_read(buffer, VXTU_SECTOR_SIZE, index * VXTU_SECTOR_SIZE);
return true;
}

static bool write_sector(vxt_system *s, void *fp, unsigned index, const vxt_byte *buffer) {
(void)s; (void)fp;
js_disk_write(buffer, VXTU_SECTOR_SIZE, (int)index * VXTU_SECTOR_SIZE);
js_disk_write(buffer, VXTU_SECTOR_SIZE, index * VXTU_SECTOR_SIZE);
return true;
}

Expand Down

0 comments on commit ac47082

Please sign in to comment.