mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-04 04:40:50 +00:00
Hash function needs uint32_t for some platforms. (#3038)
This commit is contained in:
parent
7334ee7349
commit
8d37d93e05
@ -328,9 +328,9 @@ int RadioInterface::notifyDeepSleepCb(void *unused)
|
|||||||
* djb2 by Dan Bernstein.
|
* djb2 by Dan Bernstein.
|
||||||
* http://www.cse.yorku.ca/~oz/hash.html
|
* http://www.cse.yorku.ca/~oz/hash.html
|
||||||
*/
|
*/
|
||||||
unsigned long hash(const char *str)
|
uint32_t hash(const char *str)
|
||||||
{
|
{
|
||||||
unsigned long hash = 5381;
|
uint32_t hash = 5381;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
while ((c = *str++) != 0)
|
while ((c = *str++) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user