summaryrefslogtreecommitdiffstats
path: root/time.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-02-14 05:45:13 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-02-14 05:45:13 -0800
commitde0268077b27309540e2463242f12c5455e94b8e (patch)
tree7e6057c480d34becefd9f1c1c2bc3aa3319f6cec /time.h
parent8da8ba5a1cc7adf3ad5a4576510aae5c31ae0a6e (diff)
downloadtxr-de0268077b27309540e2463242f12c5455e94b8e.tar.gz
txr-de0268077b27309540e2463242f12c5455e94b8e.tar.bz2
txr-de0268077b27309540e2463242f12c5455e94b8e.zip
Few adjustments to no-implicit-conversion patch.
* lib.h (c_u): New inline function: unsafe conversion to ucnum, analogous to c_n for cnum. * hash.c (equal_hash, hash_iter_init): Use UINT_PTR_MAX instead of convert(ucnum, -1). (eql_hash): mp_hash returns unsigned long, so shouldn't require a cast to go to the uint_ptr_t. The types are of the same size, or at worst it is a widening. Also replace convert(ucnum, -1) by UINT_PTR_MAX here. Combining the TAG_CHR and TAG_NUM cases, and using c_u, which is more efficient since c_chr and c_num are non-inlined functions which redundantly check type. We no longer need a self variable in this function. (eq_hash): Same TAG_CHR and TAG_NUM changes as eql_hash. * regex.c (char_set_add): Reformat change to avoid line break across assignment.
Diffstat (limited to 'time.h')
0 files changed, 0 insertions, 0 deletions