diff --git a/src/microsoft/compiler/dxil_module.c b/src/microsoft/compiler/dxil_module.c index 17e4a55db39..06af1f92f15 100644 --- a/src/microsoft/compiler/dxil_module.c +++ b/src/microsoft/compiler/dxil_module.c @@ -185,7 +185,7 @@ static bool is_char7_string(const char *str) { while (*str != '\0') { - if (*str++ >= 128) + if (*str++ & 0x80) return false; } return true;