summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-06-02 18:43:09 +0200
committerJo-Philipp Wich <jo@mein.io>2021-06-02 18:49:52 +0200
commit05c80a78a3cc1371bd04575de01128b0a4bd16b0 (patch)
tree788b90cc1dd7c2e94121f6101a1e558cf517cad6 /.github
parentdaef8b35f421c5481116c27fa5132881549a76a6 (diff)
lib: fix negative uc_index() return value on 32bit systems
The numeric return value was incorrectly stored in an unsigned size_t variable which got later wrapped in an ucode signed 64bit integer value. This worked by accident on 64bit systems since (int64_t)(size_t)(-1) == -1, but it failed on 32bit ones where (int64_t)(size_t)(-1) yields 4294967295 due to the different sizes of the size_t and int64_t types. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions