Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
62dd4938
Commit
62dd4938
authored
Feb 11, 2010
by
Robert Loehning
Browse files
Fixed crash. Passing negative values to isalnum compiled with MSVC crashed.
parent
4f971b9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/utils/filesearch.cpp
View file @
62dd4938
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment