Commit 216e289f by apatrick@chromium.org

Fix signed / unsigned warning in ParseHelper.cpp.

Review URL: https://codereview.appspot.com/7330046 git-svn-id: https://angleproject.googlecode.com/svn/trunk@1828 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent d91136ad
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 1827 #define BUILD_REVISION 1828
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -512,7 +512,7 @@ bool TParseContext::constructorErrorCheck(int line, TIntermNode* node, TFunction ...@@ -512,7 +512,7 @@ bool TParseContext::constructorErrorCheck(int line, TIntermNode* node, TFunction
if (constType) if (constType)
type->setQualifier(EvqConst); type->setQualifier(EvqConst);
if (type->isArray() && type->getArraySize() != function.getParamCount()) { if (type->isArray() && static_cast<size_t>(type->getArraySize()) != function.getParamCount()) {
error(line, "array constructor needs one argument per array element", "constructor"); error(line, "array constructor needs one argument per array element", "constructor");
return true; return true;
} }
......
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