mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-28 06:32:44 +00:00
folder: change ~ for floats too
This commit is contained in:
parent
73c4015046
commit
49bb172a09
1 changed files with 1 additions and 1 deletions
2
fold.c
2
fold.c
|
@ -616,7 +616,7 @@ static GMQCC_INLINE ast_expression *fold_op_cmp(fold_t *fold, ast_value *a, ast_
|
||||||
static GMQCC_INLINE ast_expression *fold_op_bnot(fold_t *fold, ast_value *a) {
|
static GMQCC_INLINE ast_expression *fold_op_bnot(fold_t *fold, ast_value *a) {
|
||||||
if (isfloat(a)) {
|
if (isfloat(a)) {
|
||||||
if (fold_can_1(a))
|
if (fold_can_1(a))
|
||||||
return fold_constgen_float(fold, ~((qcint_t)fold_immvalue_float(a)));
|
return fold_constgen_float(fold, -1-fold_immvalue_float(a));
|
||||||
} else {
|
} else {
|
||||||
if (isvector(a)) {
|
if (isvector(a)) {
|
||||||
if (fold_can_1(a))
|
if (fold_can_1(a))
|
||||||
|
|
Loading…
Reference in a new issue