diff options
Diffstat (limited to 'code/qcommon/common.c')
-rwxr-xr-x | code/qcommon/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 7d8f823..7eadabb 100755 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -145,6 +145,7 @@ void QDECL Com_Printf( const char *fmt, ... ) { char msg[MAXPRINTMSG]; static qboolean opening_qconsole = qfalse; + va_start (argptr,fmt); Q_vsnprintf (msg, sizeof(msg), fmt, argptr); va_end (argptr); @@ -1527,7 +1528,7 @@ void Com_InitHunkMemory( void ) { Com_Error( ERR_FATAL, "Hunk data failed to allocate %i megs", s_hunkTotal / (1024*1024) ); } // cacheline align - s_hunkData = (byte *) ( ( (int)s_hunkData + 31 ) & ~31 ); + s_hunkData = (byte *) ( ( (long)s_hunkData + 31 ) & ~31 ); Hunk_Clear(); Cmd_AddCommand( "meminfo", Com_Meminfo_f ); |