projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
652db16
)
Fix StandAlone.cpp compilation warnings
author
LoopDawg
<sk_opengl@khasekhemwy.net>
Wed, 12 Jul 2017 15:04:39 +0000
(09:04 -0600)
committer
LoopDawg
<sk_opengl@khasekhemwy.net>
Wed, 12 Jul 2017 15:05:05 +0000
(09:05 -0600)
find_first_of returns size_t, was overflowing int.
StandAlone/StandAlone.cpp
patch
|
blob
|
history
diff --git
a/StandAlone/StandAlone.cpp
b/StandAlone/StandAlone.cpp
index
1e2c8f7
..
1089432
100644
(file)
--- a/
StandAlone/StandAlone.cpp
+++ b/
StandAlone/StandAlone.cpp
@@
-176,7
+176,7
@@
public:
fixLine(def);
// The first "=" needs to turn into a space
-
in
t equal = def.find_first_of("=");
+
const size_
t equal = def.find_first_of("=");
if (equal != def.npos)
def[equal] = ' ';
@@
-197,7
+197,7
@@
protected:
void fixLine(std::string& line)
{
// Can't go past a newline in the line
-
in
t end = line.find_first_of("\n");
+
const size_
t end = line.find_first_of("\n");
if (end != line.npos)
line = line.substr(0, end);
}