Closed fluks closed 8 years ago
Good catch! I'll rework :)
https://github.com/sheredom/utf8.h/pull/11 is testing the fix for this now!
@sheredom : I don't really know why your fix did not pass the travis tests. I have made another fix that seems identical with yours and it passed all of the tests. I created a new pull request #15 for that
@Gumichan01 Thanks a ton - your MR did indeed work a charm and I can close this issue :smile:
utf8chr
uses anint
type, which can be 16 bits wide, forchr
code point argument. Maximum code point is 0x10FFFF which is more than 16 bits. To be more portable,chr
argument's type should be something that is always large enough, maybelong
if you don't want to includestdint.h
.