as i should've guessed initially, this had nothing to do with the
earlier issues i noticed which seemed to disappear once i started
fiddling with this function. that appeared to be coincidence.

the actual issue lies somewhere else it seems ... ugh
This commit is contained in:
Gered 2025-02-04 21:14:30 -05:00
parent 27e096e03b
commit c099d9bae1

View file

@ -15,11 +15,7 @@
* @return the smallest short c such that c >= a / b * @return the smallest short c such that c >= a / b
*/ */
short ceil_div_short(short a, short b) { short ceil_div_short(short a, short b) {
if (a % b) { return (a + (b - 1)) / b;
return (a / b) + 1;
} else {
return a / b;
}
} }
/** /**