X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=stat.c;h=3b54d6e494f63f4cc23db2ca79afc75bdcd717fc;hp=137b37010eeb68d92caedc1e1b818b934fbf44c9;hb=6db2e69f9a9411f4d5cb6923b1ead3706d7fe195;hpb=3b8b76328cc151517a6525fabe48d3885e4c95c9 diff --git a/stat.c b/stat.c index 137b370..3b54d6e 100644 --- a/stat.c +++ b/stat.c @@ -24,7 +24,6 @@ #include #include -#include #include "gmqcc.h" @@ -290,7 +289,7 @@ typedef struct hash_node_t { * } * * The two u32s that form the key are the same value x (pulled from data) - * this premix stage will be perform the same results for both. Unrolled + * this premix stage will perform the same results for both values. Unrolled * this produces just: * x *= m; * x ^= x >> r; @@ -301,7 +300,7 @@ typedef struct hash_node_t { * h *= m; * h ^= x; * - * This appears to be fine, except what happens when m == 1, well x + * This appears to be fine, except what happens when m == 1? well x * cancels out entierly, leaving just: * x ^= x >> r; * h ^= x; @@ -613,7 +612,7 @@ static void stat_dump_mem_contents(stat_mem_block_t *memory, uint16_t cols) { con_out("%c", (j >= memory->size) ? ' ' - : (isprint(((unsigned char*)(memory + 1))[j])) + : (util_isprint(((unsigned char*)(memory + 1))[j])) ? 0xFF & ((unsigned char*)(memory + 1)) [j] : '.' );