diff --git a/src/runtime.js b/src/runtime.js index 012bd300698e4..9c13600cc2ea2 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -41,7 +41,7 @@ global.Runtime = { // sure there are not external users. // See: https://github.com/emscripten-core/emscripten/issues/15242 getNativeFieldSize: function(type) { - return Math.max(getNativeTypeSize(type), Runtime.QUANTUM_SIZE); + return Math.max(getNativeTypeSize(type), Runtime.POINTER_SIZE); }, POINTER_SIZE: POINTER_SIZE,