From 02346be7cba59249df8458852d8b8d0b28abdcd1 Mon Sep 17 00:00:00 2001 From: Branimir Karadzic Date: Fri, 31 Oct 2014 09:46:50 -0700 Subject: [PATCH] Skip white space before parsing /. --- tools/shaderc/shaderc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index e1a07c0d..1e0da962 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -2005,12 +2005,12 @@ int main(int _argc, const char* _argv[]) memset(&data[size+1], 0, padding); fclose(file); - input = data; + input = const_cast(bx::strws(data) ); while (input[0] == '$') { - const char* str = input+1; + const char* str = bx::strws(input+1); const char* eol = bx::streol(str); - const char* nl = bx::strnl(eol); + const char* nl = bx::strnl(eol); input = const_cast(nl); if (0 == strncmp(str, "input", 5) )