Index: src/wasm/module-compiler.cc |
diff --git a/src/wasm/module-compiler.cc b/src/wasm/module-compiler.cc |
index 3a988e69962eb31e3e9ddd5b1ea144ce1a654b35..4fe8d2313c8d18ef55854db4c92679f4859d1deb 100644 |
--- a/src/wasm/module-compiler.cc |
+++ b/src/wasm/module-compiler.cc |
@@ -1339,8 +1339,8 @@ int InstanceBuilder::ProcessImports(Handle<FixedArray> code_table, |
} |
if (table.has_max) { |
- int64_t imported_max_size = |
- table_instance.table_object->maximum_length(); |
+ int64_t imported_max_size = static_cast<int64_t>( |
Clemens Hammacher
2017/07/10 10:35:48
You don't need this static_cast.
titzer
2017/07/10 10:38:23
Done.
|
+ table_instance.table_object->maximum_length()->Number()); |
if (imported_max_size < 0) { |
thrower_->LinkError( |
"table import %d has no maximum length, expected %d", index, |