diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index 58a0176f..1300b4d2 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -1569,7 +1569,7 @@ void CompilerGLSL::strip_enclosed_expression(string &expr) return; } } - expr.pop_back(); + expr.erase(expr.size() - 1, 1); expr.erase(begin(expr)); }