grigorig / ucdn

Unicode Database and Normalization
Other
85 stars 12 forks source link

Cast bsearch result to to (Reindex *). #15

Closed bakercp closed 7 years ago

bakercp commented 7 years ago

Allows direct compilation in Visual Studio.

grigorig commented 7 years ago

Thanks. This is valid C, so it should compile even in MSVC, unless you enable C++ mode for C files. What kind of warning/error did you see?

Anyway, let's merge this, it's consistent with other usages of bsearch, too.

bakercp commented 7 years ago

It was a type conversion error that said it required a cast. I'm not in front of the development machine at the moment, but the project file was likely set up to treat the file C file as C++. Anyway, thanks!