Fix compiles on VS2017 and GCC

VS2017 took issue with treating size_t and uint32_t the same. It also
couldn't find various alphanumeric is* functions without the <cctype>
header. Gcc complainted about a variable potentially used uninitialized.

Change-Id: I452b68c6597bae254f32e5a350656e65c8934b6e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/18901
Reviewed-by: dan sinclair <dsinclair@google.com>
This commit is contained in:
Greg Roth
2020-04-06 17:16:56 +00:00
committed by dan sinclair
parent 2c18339745
commit 8229360312
4 changed files with 10 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ TEST_F(ScopeStackTest, Global_SetWithPointer) {
ScopeStack<ast::Variable*> s;
s.set_global("var", &v);
ast::Variable* v2;
ast::Variable* v2 = nullptr;
EXPECT_TRUE(s.get("var", &v2));
EXPECT_EQ(v2->name(), "my_var");
}