Skip to content

Commit

Permalink
readline: should be uint8_t for c as it's passed to read()
Browse files Browse the repository at this point in the history
This fixes the breakage with fsh on any big endian platform where uint_fast8_t
is not byte sized.
  • Loading branch information
EtchedPixels committed Feb 7, 2025
1 parent 49513f9 commit faab597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/libs/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static void history(int8_t dir)
int rl_edit_timeout(int fd, int ofd, const char *prompt,
char *input, size_t len, uint8_t timeout, int (*timeout_fn)(void))
{
uint_fast8_t c;
uint8_t c;
uint_fast8_t quote = 0;
uint_fast8_t esc = 0;
register uint_fast8_t r;
Expand Down

0 comments on commit faab597

Please sign in to comment.