Skip to content

Commit 88b349a

Browse files
small fixes
1 parent e1616d5 commit 88b349a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

include/retrofs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define RFS_MAX_NAME 128 /**< Maximum length of file/directory name (excluding terminator). */
3131
#define RFS_FS_MAP_BITS_PER_SECTOR (512 / sizeof(uint64_t)) /**< Number of free-space bits stored in a sector. */
3232

33-
#define RFS_MAP_READ_CHUNK_SECTORS 16 /**< Preferred chunk size (in sectors) for reading the free space map. */
33+
#define RFS_MAP_READ_CHUNK_SECTORS 16ULL /**< Preferred chunk size (in sectors) for reading the free space map. */
3434

3535
/**
3636
* @brief Default number of sectors allocated for a directory block.

src/fs/fat32/directory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fs_directory_entry_t* parse_fat32_directory(fs_tree_t* tree, fat32_t* info, uint
7474
/* LFN entry: stash by sequence index (mask off 0x40) */
7575
lfn_t* lfn = (lfn_t*)entry;
7676
uint8_t idx = (uint8_t)(lfn->order & 0x1F);
77-
if (idx > 0 && idx < 256) {
77+
if (idx > 0) {
7878
memcpy(&lfns[idx], lfn, sizeof(lfn_t));
7979
if ((int16_t)idx > highest_lfn_order) {
8080
highest_lfn_order = (int16_t)idx;

src/video.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int64_t video_dirty_start = -1;
1111
int64_t video_dirty_end = -1;
1212
console* current_console = NULL;
1313

14-
static const uint8_t font_data[] = {
14+
static uint8_t font_data[] = {
1515
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1616
0x3e, 0x3e, 0x41, 0x41, 0x55, 0x55, 0x41, 0x41, 0x55, 0x55, 0x5d, 0x5d, 0x41, 0x41, 0x3e, 0x3e,
1717
0x3e, 0x3e, 0x7f, 0x7f, 0x6b, 0x6b, 0x7f, 0x7f, 0x6b, 0x6b, 0x63, 0x63, 0x7f, 0x7f, 0x3e, 0x3e,
@@ -461,8 +461,8 @@ void init_console()
461461
NULL, NULL,
462462
NULL, NULL,
463463
font_data,
464-
font_data ? 8 : 0,
465-
font_data ? 16 : 0,
464+
8,
465+
16,
466466
1,
467467
0,
468468
0,

0 commit comments

Comments
 (0)