uintmax_t val;
if (INTEGERP (c))
{
- valid = 0 <= XINT (c);
+ valid = XINT (c) >= 0;
val = XINT (c);
}
else if (FLOATP (c))
{
double d = XFLOAT_DATA (c);
- if (0 <= d && d < 1.0 + max)
+ if (d >= 0 && d < 1.0 + max)
{
val = d;
valid = val == d;
else if (FLOATP (c))
{
double d = XFLOAT_DATA (c);
- if (min <= d && d < 1.0 + max)
+ if (d >= min && d < 1.0 + max)
{
val = d;
valid = val == d;
{
intmax_t top = XINT (XCAR (c));
Lisp_Object rest = XCDR (c);
- if (INTMAX_MIN >> 24 >> 16 <= top && top <= INTMAX_MAX >> 24 >> 16
+ if (top >= INTMAX_MIN >> 24 >> 16 && top <= INTMAX_MAX >> 24 >> 16
&& CONSP (rest)
&& NATNUMP (XCAR (rest)) && XFASTINT (XCAR (rest)) < 1 << 24
&& NATNUMP (XCDR (rest)) && XFASTINT (XCDR (rest)) < 1 << 16)
val = top << 24 << 16 | mid << 16 | XFASTINT (XCDR (rest));
valid = true;
}
- else if (INTMAX_MIN >> 16 <= top && top <= INTMAX_MAX >> 16)
+ else if (top >= INTMAX_MIN >> 16 && top <= INTMAX_MAX >> 16)
{
if (CONSP (rest))
rest = XCAR (rest);
else
{
CHECK_NUMBER (base);
- if (! (2 <= XINT (base) && XINT (base) <= 16))
+ if (! (XINT (base) >= 2 && XINT (base) <= 16))
xsignal1 (Qargs_out_of_range, base);
b = XINT (base);
}