From: havoc Date: Sun, 30 Oct 2011 02:55:30 +0000 (+0000) Subject: fix C++ compile error X-Git-Tag: xonotic-v0.6.0~163^2~68 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e77221a1fb23188d552ae92dc25cc06ff733cbaa;p=xonotic%2Fdarkplaces.git fix C++ compile error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11489 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/hmac.c b/hmac.c index a422c699..e740632d 100644 --- a/hmac.c +++ b/hmac.c @@ -21,7 +21,7 @@ qboolean hmac( if(sizeof(k_xor_ipad) < (size_t) hlen) return false; - catbuf = Mem_Alloc(tempmempool, (size_t) hblock + max((size_t) hlen, (size_t) n)); + catbuf = (unsigned char *)Mem_Alloc(tempmempool, (size_t) hblock + max((size_t) hlen, (size_t) n)); if(k > hblock) {