Commit 0f206537 by Nicolas Capens

Fixed -1 to implicitly unsigned char narrowing error.

C++11 does not allow narrowing a constant expression value to a type that can't fully represent it. So when char is considered unsigned, we can't store -1 in it. Explicitly using signed char fixes it. Change-Id: I5c0e9fe0025659e06291655a12220ab589d5f5bd Reviewed-on: https://swiftshader-review.googlesource.com/9630Reviewed-by: 's avatarCorentin Wallez <cwallez@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 5f726935
...@@ -1173,7 +1173,7 @@ namespace sw ...@@ -1173,7 +1173,7 @@ namespace sw
ASSERT(false); ASSERT(false);
} }
static const char size[] = static const signed char size[] =
{ {
0, // NOP = 0 0, // NOP = 0
2, // MOV 2, // MOV
......
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