mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
-0xFF will now be a signed integer.
- `-2147483648`, MIN literals work correctly.
This commit is contained in:
@@ -35,7 +35,7 @@ fn double fmod(double x, double y) @extern("fmod") @weak @nostrip
|
||||
}
|
||||
else
|
||||
{
|
||||
uxi &= -1UL >> 12;
|
||||
uxi &= (ulong)-1 >> 12;
|
||||
uxi |= 1UL << 52;
|
||||
}
|
||||
if (!ey)
|
||||
@@ -45,7 +45,7 @@ fn double fmod(double x, double y) @extern("fmod") @weak @nostrip
|
||||
}
|
||||
else
|
||||
{
|
||||
uy.i &= -1UL >> 12;
|
||||
uy.i &= (ulong)-1 >> 12;
|
||||
uy.i |= 1UL << 52;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ fn float fmodf(float x, float y) @extern("fmodf") @weak @nostrip
|
||||
}
|
||||
else
|
||||
{
|
||||
uxi &= -1U >> 9;
|
||||
uxi &= (uint)-1 >> 9;
|
||||
uxi |= 1U << 23;
|
||||
}
|
||||
if (!ey)
|
||||
@@ -115,7 +115,7 @@ fn float fmodf(float x, float y) @extern("fmodf") @weak @nostrip
|
||||
}
|
||||
else
|
||||
{
|
||||
uy.i &= -1U >> 9;
|
||||
uy.i &= (ulong)-1 >> 9;
|
||||
uy.i |= 1U << 23;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user