Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix runtime pointer direct cast (#14592)
Add `intptr_t` cast in between `uint64_t` and the `void*` or flatbuffer pointer types. To void the `int-to-pointer-cast` and `pointer-to int-cast` warnings when build with 32-bit system ``` iree/runtime/src/iree/hal/allocator_heap.c:237:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 237 | ptr = (void*)external_buffer->handle.device_allocation.ptr; | ^ ``` ``` iree/runtime/src/iree/vm/bytecode/module.c:528:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 528 | (iree_vm_FunctionSourceMapDef_table_t)data[0]; | ^ iree/vm/bytecode/module.c:590:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 590 | out_source_location->data[0] = (uint64_t)source_map_def; | ^ ```
- Loading branch information