Commit d5422556 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Prevent type conversion implementation issues.

parent b1970bd7
......@@ -133,9 +133,9 @@ PPM_abort_func PPM_abort = PPM_abort_default;
int
IRand()
{
int i = (int)ppm_ya_random();
if (i == -2147483648) i = 0;
return i;
uint32_t i = ppm_ya_random();
if (i == (uint32_t)-2147483648UL) i = (uint32_t)0U;
return (int)i;
}
FCALLSCFUN0(INT,IRand,IRAND,irand)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment