Fix a sign extension bug by using unsigned bytes
This commit is contained in:
+1
-1
@@ -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
|
||||
Reference in New Issue
Block a user