Fix a sign extension bug by using unsigned bytes

This commit is contained in:
2024-10-07 22:26:29 -04:00
parent 64f9d10b4c
commit 8de384fa91
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -15,6 +15,6 @@ bool cmd_match_str(CommandBuf *cmd, const char *str);
/* Try to consume a base-16 number, and return the value. */
bool cmd_match_hex_number(CommandBuf *cmd, uint32_t *value);
/* Try to consume a hex-encoded list of bytes, and return the value. */
bool cmd_match_hex_bytes(CommandBuf *cmd, const uint32_t count, char *value);
bool cmd_match_hex_bytes(CommandBuf *cmd, const uint32_t count, uint8_t *value);
#endif