Subj : src/xpdev/genwrap.c To : Git commit to main/sbbs/master From : Deucе Date : Fri Feb 11 2022 20:49:58 https://gitlab.synchro.net/main/sbbs/-/commit/f587a43e6fee5458e3376d5a Modified Files: src/xpdev/genwrap.c Log Message: When a double is cast to an int, but the double has a larger valuethan the int supports, it's set to 0x80000000 to indicate overflow.msclock() is *always* overflowing, and clock_t is only 32-bits onsome platforms (specifically FreeBSD). To "avoid" problems, justkeep subtracting UIN32_MAX from the value until it's less than INT_MAXthen cast.This function is, of course, terrible and shouldn't actually be used,but it should at least sorta kinda workish. --- SBBSecho 3.14-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .