Commit 62dd4938 authored by Robert Loehning's avatar Robert Loehning
Browse files

Fixed crash. Passing negative values to isalnum compiled with MSVC crashed.

parent 4f971b9b
...@@ -142,9 +142,9 @@ void runFileSearch(QFutureInterface<FileSearchResult> &future, ...@@ -142,9 +142,9 @@ void runFileSearch(QFutureInterface<FileSearchResult> &future,
const char *beforeRegion = regionPtr - 1; const char *beforeRegion = regionPtr - 1;
bool equal = true; bool equal = true;
if (wholeWord && if (wholeWord &&
( isalnum(*beforeRegion) ( isalnum((unsigned char)*beforeRegion)
|| (*beforeRegion == '_') || (*beforeRegion == '_')
|| isalnum(*afterRegion) || isalnum((unsigned char)*afterRegion)
|| (*afterRegion == '_'))) { || (*afterRegion == '_'))) {
equal = false; equal = false;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment