nga-c: more fixes related to issue #58
FossilOrigin-Name: 20fcceb6ce817b2c94f11ca78e795923701d0c944049662597ab70cc0cc7dc03
This commit is contained in:
parent
d183ac683e
commit
3e3dfa9ddc
1 changed files with 4 additions and 1 deletions
|
@ -917,8 +917,11 @@ void io_rng() {
|
||||||
r = r << 8;
|
r = r << 8;
|
||||||
r += ((int64_t)buffer[i] & 0xFF);
|
r += ((int64_t)buffer[i] & 0xFF);
|
||||||
}
|
}
|
||||||
/* If using a 64-bit image, change to: stack_push(llabs(r)); */
|
#ifndef BIT64
|
||||||
stack_push((CELL)abs((CELL)r));
|
stack_push((CELL)abs((CELL)r));
|
||||||
|
#else
|
||||||
|
stack_push((CELL)llabs((CELL)r));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void query_rng() {
|
void query_rng() {
|
||||||
|
|
Loading…
Reference in a new issue