Question on hash api

From: Date: Wed, 20 Feb 2013 07:09:19 +0000
Subject: Question on hash api
Groups: php.internals 
Request: Send a blank email to internals+get-66019@lists.php.net to get a copy of this message
Hi, I've forked out an interesting project on Github that implements XXHash and extended it to work with the hash() function family. Project links below. The integration is pretty straightforward, but the following code had me concerned: PHP_HASH_API void PHP_XXH32Update(PHP_XXH32_CTX *context, const unsigned char *input, unsigned int inputLen) { XXH32_feed(context->state, (void *)input, (int)inputLen); } The XXH32_feed() takes an int argument, whereas the update ops function takes an unsigned int for the input length. Would that ever give a problem? If so, what kind of workaround am I looking at? Thanks! Project links: php-xxhash: https://github.com/datibbaw/php-xxhash XXHash: http://code.google.com/p/xxhash/

« previous php.internals (#66019) next »