summaryrefslogtreecommitdiffstats
path: root/tests/019/progv.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-12-16 07:19:45 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-12-16 07:19:45 -0800
commita8865b05a43b94c7193d27a8a574eeaeffd9c2e7 (patch)
treec037696a774b11b885738a0aa60d5fd2a4e9cfff /tests/019/progv.tl
parenta3532279d5d16f1f69bff1bae06f477cdbc53b0f (diff)
downloadtxr-a8865b05a43b94c7193d27a8a574eeaeffd9c2e7.tar.gz
txr-a8865b05a43b94c7193d27a8a574eeaeffd9c2e7.tar.bz2
txr-a8865b05a43b94c7193d27a8a574eeaeffd9c2e7.zip
bug: string range length signed/unsigned.
* lib.c (length_str_range): On platforms where wchar_t is unsigned, we calculate bogus values for reversed ranges. On Android, gcc warns about the code, and the recently added tests fail. Let's cast the characters to long before doing the subtraction, which is the argument type of labs.
Diffstat (limited to 'tests/019/progv.tl')
0 files changed, 0 insertions, 0 deletions