sheredom / utf8.h

📚 single header utf8 string functions for C and C++
The Unlicense
1.71k stars 122 forks source link

Utf8str infinite loop #55

Closed roxas232 closed 5 years ago

roxas232 commented 5 years ago

Fixed edge case when trying to use "foobar" as a haystack and "ra" as a needle

roxas232 commented 5 years ago

I do not have those older versions of Visual Studio so I have no idea what might cause them to fail. =(

sheredom commented 5 years ago

@roxas232 I've done https://github.com/sheredom/utf8.h/pull/56 to try and fix it - basically old MSVC uses C89 which means you have to declare all variables at the start of a scope!

roxas232 commented 5 years ago

Awesome, thank you!