mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
preventing "always false" alerts
This commit is contained in:
parent
c66b866a87
commit
a77327d20e
6
deps/rcheevos/src/rcheevos/operand.c
vendored
6
deps/rcheevos/src/rcheevos/operand.c
vendored
@ -118,7 +118,7 @@ static int rc_parse_operand_memory(rc_operand_t* self, const char** memaddr) {
|
||||
break;
|
||||
}
|
||||
|
||||
value = (unsigned)strtoul(aux, &end, 16);
|
||||
value = strtoul(aux, &end, 16);
|
||||
|
||||
if (end == aux) {
|
||||
return RC_INVALID_MEMORY_OPERAND;
|
||||
@ -213,7 +213,7 @@ static int rc_parse_operand_term(rc_operand_t* self, const char** memaddr, lua_S
|
||||
|
||||
switch (*aux) {
|
||||
case 'h': case 'H':
|
||||
value = (unsigned)strtoul(++aux, &end, 16);
|
||||
value = strtoul(++aux, &end, 16);
|
||||
|
||||
if (end == aux) {
|
||||
return RC_INVALID_CONST_OPERAND;
|
||||
@ -230,7 +230,7 @@ static int rc_parse_operand_term(rc_operand_t* self, const char** memaddr, lua_S
|
||||
break;
|
||||
|
||||
case 'v': case 'V':
|
||||
value = (unsigned)strtoul(++aux, &end, 10);
|
||||
value = strtoul(++aux, &end, 10);
|
||||
|
||||
if (end == aux) {
|
||||
return RC_INVALID_CONST_OPERAND;
|
||||
|
Loading…
x
Reference in New Issue
Block a user