From: havoc Date: Sun, 30 Oct 2011 02:55:30 +0000 (+0000) Subject: fix C++ compile error X-Git-Tag: xonotic-v0.6.0~201 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=86a495432de7c68901f25d805bfbe17056d8089e;p=xonotic%2Fdarkplaces.git fix C++ compile error git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11489 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=e77221a1fb23188d552ae92dc25cc06ff733cbaa --- 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) {