diff --git a/engine/common/lib_common.c b/engine/common/lib_common.c index 7d20b5c4..d3c1a5fc 100644 --- a/engine/common/lib_common.c +++ b/engine/common/lib_common.c @@ -81,7 +81,7 @@ void *COM_FunctionFromName_SR( void *hInstance, const char *pName ) const char *COM_OffsetNameForFunction( void *function ) { static string sname; - Q_snprintf( sname, MAX_STRING, "ofs:%zu", ((byte*)function - (byte*)svgame.dllFuncs.pfnGameInit) ); + Q_snprintf( sname, MAX_STRING, "ofs:%zu", (size_t)((byte*)function - (byte*)svgame.dllFuncs.pfnGameInit )); Con_Reportf( "%s: %s\n", __func__, sname ); return sname; }