summaryrefslogtreecommitdiffstats
path: root/stdlib/error.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-01-02 11:02:54 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-01-02 11:02:54 -0800
commitc3c3e114541c2daf9a507c10898c4b8d963e86b7 (patch)
tree13243a51dfb9f2626c8fba61ea0c302bc5017dc4 /stdlib/error.tl
parent6b06553049d438a52127fa722cbd8717d2a13680 (diff)
downloadtxr-c3c3e114541c2daf9a507c10898c4b8d963e86b7.tar.gz
txr-c3c3e114541c2daf9a507c10898c4b8d963e86b7.tar.bz2
txr-c3c3e114541c2daf9a507c10898c4b8d963e86b7.zip
sysif: rlim constants: use signed/unsigned-agnostic macro.
* lib.h (num_ex): New macro. Uses unum if the argument is out of range for the signed type. Thus we can use this with unsigned constants that would wrap negative if passed to num. This is useful if some type in a system header file might be signed or unsigned. * sysif.c (sysif_init): Use num_ex for the RLIM_* constants. I'm observing values of -1 which should really be large, positive values in the rlim_t type, that being unsigned.
Diffstat (limited to 'stdlib/error.tl')
0 files changed, 0 insertions, 0 deletions