mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
(cheevos.c) Fix 'value can never be lesser than 0' warning
This commit is contained in:
parent
f5cedc6129
commit
9ecf04a999
@ -1121,7 +1121,7 @@ static unsigned cheevos_get_var_value(cheevos_var_t *var)
|
||||
{
|
||||
live_val = memory[0];
|
||||
|
||||
if (var->size >= CHEEVOS_VAR_SIZE_BIT_0
|
||||
if (var->size > CHEEVOS_VAR_SIZE_BIT_0
|
||||
&& var->size <= CHEEVOS_VAR_SIZE_BIT_7)
|
||||
live_val = (live_val &
|
||||
(1 << (var->size - CHEEVOS_VAR_SIZE_BIT_0))) != 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user