diff options
Diffstat (limited to 'src/tools/fuzzing')
-rw-r--r-- | src/tools/fuzzing/fuzzing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp index f4e21d870..cbdbff3ca 100644 --- a/src/tools/fuzzing/fuzzing.cpp +++ b/src/tools/fuzzing/fuzzing.cpp @@ -535,7 +535,7 @@ void TranslateToFuzzReader::finalizeMemory() { // TODO: It would be better to avoid segment overlap so that // MemoryPacking can run. segment->offset = - builder.makeConst(Literal::makeFromInt32(0, Type::i32)); + builder.makeConst(Literal::makeFromInt32(0, memory->addressType)); } } if (auto* offset = segment->offset->dynCast<Const>()) { @@ -579,7 +579,7 @@ void TranslateToFuzzReader::finalizeTable() { assert(!wasm.getGlobal(get->name)->imported()); // TODO: the segments must not overlap... segment->offset = - builder.makeConst(Literal::makeFromInt32(0, Type::i32)); + builder.makeConst(Literal::makeFromInt32(0, table->addressType)); } } Address maxOffset = segment->data.size(); |