diff --git a/onnxruntime/core/providers/js/js_export.cc b/onnxruntime/core/providers/js/js_export.cc index 2402bb33ce9d0..f99e90bcb13f6 100644 --- a/onnxruntime/core/providers/js/js_export.cc +++ b/onnxruntime/core/providers/js/js_export.cc @@ -6,8 +6,8 @@ #include "core/framework/op_kernel.h" const void* JsepOutput(void* context, int index, const void* data) { - const uint32_t* data_offset = reinterpret_cast(data); - uint32_t dim = *data_offset++; + const uintptr_t* data_offset = reinterpret_cast(data); + uintptr_t dim = *data_offset++; size_t dim_size = static_cast(dim); std::vector dims(dim_size); for (size_t i = 0; i < dim_size; i++) {