diff --git a/projects/clr/hipamd/vdi/hip_platform.cpp b/projects/clr/hipamd/vdi/hip_platform.cpp index 7e668b16cc..9c18476e38 100755 --- a/projects/clr/hipamd/vdi/hip_platform.cpp +++ b/projects/clr/hipamd/vdi/hip_platform.cpp @@ -544,15 +544,15 @@ extern "C" void __hipRegisterFunction( // executions. extern "C" void __hipRegisterVar( std::vector >* modules, // The device modules containing code object - char* var, // The shadow variable in host code + void* var, // The shadow variable in host code char* hostVar, // Variable name in host code char* deviceVar, // Variable name in device code int ext, // Whether this variable is external - int size, // Size of the variable + size_t size, // Size of the variable int constant, // Whether this variable is constant int global) // Unknown, always 0 { - PlatformState::DeviceVar dvar{var, std::string{ hostVar }, static_cast(size), modules, + PlatformState::DeviceVar dvar{var, std::string{ hostVar }, size, modules, std::vector{g_devices.size()}, false }; PlatformState::instance().registerVar(hostVar, dvar);