mirror of
https://github.com/urbit/vere.git
synced 2024-09-11 03:45:31 +03:00
In ripn jet, handle zero values correctly. (#1214)
This commit is contained in:
parent
a35cce2746
commit
19a53f97c7
@ -11,7 +11,9 @@
|
||||
/*
|
||||
Divide, rounding up.
|
||||
*/
|
||||
#define DIVCEIL(x,y) 1 + ((x - 1) / y);
|
||||
#define DIVCEIL(x,y) \
|
||||
(x==0) ? 0 : \
|
||||
1 + ((x - 1) / y);
|
||||
|
||||
/*
|
||||
`ripn` breaks `atom` into a list of blocks, of bit-width `bits`. The
|
||||
|
Loading…
Reference in New Issue
Block a user