Skip to content

Commit 22cada1

Browse files
committed
Fix 64bit builds
1 parent a6b60d2 commit 22cada1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shared-module/dotenv/__init__.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
STATIC uint8_t consume_spaces(FIL *active_file) {
3737
uint8_t character = ' ';
38-
size_t quantity_read = 1;
38+
UINT quantity_read = 1;
3939
while (unichar_isspace(character) && quantity_read > 0) {
4040
f_read(active_file, &character, 1, &quantity_read);
4141
}
@@ -46,7 +46,7 @@ STATIC uint8_t consume_spaces(FIL *active_file) {
4646
// key. File pointer is left after the = after the key.
4747
STATIC bool key_matches(FIL *active_file, const char *key) {
4848
uint8_t character = ' ';
49-
size_t quantity_read = 1;
49+
UINT quantity_read = 1;
5050
character = consume_spaces(active_file);
5151
bool quoted = false;
5252
if (character == '\'') {
@@ -90,7 +90,7 @@ STATIC bool key_matches(FIL *active_file, const char *key) {
9090

9191
STATIC bool next_line(FIL *active_file) {
9292
uint8_t character = ' ';
93-
size_t quantity_read = 1;
93+
UINT quantity_read = 1;
9494
bool quoted = false;
9595
bool escaped = false;
9696
// Track comments because they last until the end of the line.
@@ -117,7 +117,7 @@ STATIC bool next_line(FIL *active_file) {
117117

118118
STATIC mp_int_t read_value(FIL *active_file, char *value, size_t value_len) {
119119
uint8_t character = ' ';
120-
size_t quantity_read = 1;
120+
UINT quantity_read = 1;
121121
// Consume spaces before =
122122
character = consume_spaces(active_file);
123123
if (character != '=') {

0 commit comments

Comments
 (0)