Fix compiler warnings (clang -Wextra)
This commit is contained in:
+1
-1
@@ -1139,7 +1139,7 @@ static value_t fl_neg(value_t n)
|
||||
{
|
||||
if (isfixnum(n)) {
|
||||
fixnum_t s = fixnum(-numval(n));
|
||||
if (__unlikely(s == n))
|
||||
if (__unlikely(n == (ufixnum_t)s))
|
||||
return mk_long(-numval(n)); // negate overflows
|
||||
else
|
||||
return s;
|
||||
|
||||
@@ -1490,7 +1490,7 @@ apply_cl_top:
|
||||
do_neg:
|
||||
if (isfixnum(Stack[SP - 1])) {
|
||||
s = fixnum(-numval(Stack[SP - 1]));
|
||||
if (__unlikely(s == Stack[SP - 1]))
|
||||
if (__unlikely(Stack[SP - 1] == (ufixnum_t)s))
|
||||
Stack[SP - 1] =
|
||||
mk_long(-numval(Stack[SP - 1])); // negate overflows
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user