mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
divVerent suggestion to use memcmp here
This commit is contained in:
parent
6d8d7ee923
commit
eca82511c6
1 changed files with 1 additions and 1 deletions
2
fold.c
2
fold.c
|
@ -279,7 +279,7 @@ ast_expression *fold_constgen_float(fold_t *fold, qcfloat_t value) {
|
|||
size_t i;
|
||||
|
||||
for (i = 0; i < vec_size(fold->imm_float); i++) {
|
||||
if (fold->imm_float[i]->constval.vfloat == value)
|
||||
if (!memcmp(&fold->imm_float[i]->constval.vfloat, &value, sizeof(qcfloat_t)))
|
||||
return (ast_expression*)fold->imm_float[i];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue