From: divverent Date: Thu, 25 Nov 2010 19:51:49 +0000 (+0000) Subject: fix a cast X-Git-Tag: xonotic-v0.5.0~438^2~209 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=acd8646648b6a54d5e0c2aac2e51eeb2572def11;p=xonotic%2Fdarkplaces.git fix a cast git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10632 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/crypto.c b/crypto.c index c261d490..cf83ed1b 100644 --- a/crypto.c +++ b/crypto.c @@ -2336,7 +2336,7 @@ size_t Crypto_SignData(const void *data, size_t datasize, int keyid, void *signe return 0; if(!pubkeys_havepriv[keyid]) return 0; - if(qd0_blind_id_sign_with_private_id_sign(pubkeys[keyid], true, false, (char *)data, datasize, (char *)signed_data, &signed_size)) + if(qd0_blind_id_sign_with_private_id_sign(pubkeys[keyid], true, false, (const char *)data, datasize, (char *)signed_data, &signed_size)) return signed_size; return 0; }