Bug: Compiler warning on 32 bit systems
Danger: Trivial - Warning can be safely ignored, but stops the compile with a default makefile.
Found by: g++
Fixed by: Samson
bug( "%s: midlist control block (%ld).", __FUNCTION__, *trash - trw_heap );
bug( "%s: midlist control block (%zd).", __FUNCTION__, *trash - trw_heap );
This is a minor formatting glitch. When a 32 bit system runs into this it will complain that the format calls for a long int, but the argument is an int. However, if %ld is changed to %d, 64 bit systems will start complaining. After doing a bit of digging in the man page for sprintf, I ran across the %z specifier which tells it to look for a size_t type argument. This satisfies the condition on both types of CPUs.