diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-29 10:36:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-29 10:36:23 -0700 |
commit | ecca6d3153e787c345cae1d94b84b1324df5f6a0 (patch) | |
tree | 77c02b046933468eed173eb9316a22c92e71211b | |
parent | fb0d9509f23472df14d03d93d333d242d23bd2bd (diff) | |
download | binaryen-ecca6d3153e787c345cae1d94b84b1324df5f6a0.tar.gz binaryen-ecca6d3153e787c345cae1d94b84b1324df5f6a0.tar.bz2 binaryen-ecca6d3153e787c345cae1d94b84b1324df5f6a0.zip |
avoid constexpr since visual studio doesn't like it
-rw-r--r-- | src/wasm-s-parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 575ceff97..6b03433b5 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -453,7 +453,7 @@ public: // type.operation (e.g. i32.add) WasmType type = stringToWasmType(str, false, true); // Local copy to index into op without bounds checking. - constexpr size_t maxNameSize = 15; + const size_t maxNameSize = 15; char op[maxNameSize + 1]; memset(op, 0, maxNameSize + 1); // ensure the whole string is cleared. strncpy(op, dot + 1, maxNameSize); |