diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-14 16:14:56 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-14 16:14:56 -0800 |
commit | 1e80630b009ecd5e63206353292fd63197ac9bdd (patch) | |
tree | 2e48201593801712e8e70bc8e1517b111739d480 | |
parent | af146aa19fa7ebee5b7def5fdf3c61b225857be4 (diff) | |
download | binaryen-1e80630b009ecd5e63206353292fd63197ac9bdd.tar.gz binaryen-1e80630b009ecd5e63206353292fd63197ac9bdd.tar.bz2 binaryen-1e80630b009ecd5e63206353292fd63197ac9bdd.zip |
comments
-rw-r--r-- | src/wasm-binary.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h index d0bd0a818..233722aa5 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -470,7 +470,7 @@ public: } if (function) { size_t sizePos = o.size(); - o << (uint16_t)0; // placeholder + o << (uint16_t)0; // placeholder, we fill in the size later when we have it size_t start = o.size(); depth = 0; recurse(function->body); @@ -530,7 +530,7 @@ public: void emitBuffer(const char* data, size_t size) { assert(size > 0); buffersToWrite.emplace_back(data, size, o.size()); - o << uint32_t(0); // placeholder + o << uint32_t(0); // placeholder, we'll fill in the pointer to the buffer later when we have it } void emitString(const char *str) { |