mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Remove undefined behaviors
This commit is contained in:
parent
4864565198
commit
b3838173ec
51 changed files with 756 additions and 1302 deletions
|
@ -29,7 +29,7 @@ void(psignd)(int32_t a[4], const int32_t b[4], const int32_t c[4]) {
|
|||
if (!c[i]) {
|
||||
a[i] = 0;
|
||||
} else if (c[i] < 0) {
|
||||
a[i] = -b[i];
|
||||
a[i] = -(uint32_t)b[i];
|
||||
} else {
|
||||
a[i] = b[i];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue