More conversion

This commit is contained in:
iikorni
2026-08-29 19:17:46 -05:00
parent 0404d430dc
commit 70e5c02355
72 changed files with 13308 additions and 14309 deletions
+3 -3
View File
@@ -238,7 +238,7 @@ void *Z_Realloc(void *ptr, int size)
Sys_Error ("Z_Realloc: failed on allocation of %i bytes", size);
if (ptr != old_ptr)
memmove (ptr, old_ptr, q_min(old_size, size));
memmove (ptr, old_ptr, std::min(old_size, size));
if (old_size < size)
memset ((byte *)ptr + old_size, 0, size - old_size);
@@ -838,7 +838,7 @@ void Cache_Init (void)
cache_head.next = cache_head.prev = &cache_head;
cache_head.lru_next = cache_head.lru_prev = &cache_head;
Cmd_AddCommand ("flush", Cache_Flush);
command::add ("flush", Cache_Flush);
}
/*
@@ -984,6 +984,6 @@ void Memory_Init (void *buf, int size)
mainzone = (memzone_t *) Hunk_AllocName (zonesize, "zone" );
Memory_InitZone (mainzone, zonesize);
Cmd_AddCommand ("hunk_print", Hunk_Print_f); //johnfitz
command::add ("hunk_print", Hunk_Print_f); //johnfitz
}