mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 02:39:57 +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.
|
||||
* 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;
|
||||
|
||||
while ((c = *str++) != 0)
|
||||
@ -548,4 +548,4 @@ size_t RadioInterface::beginSending(meshtastic_MeshPacket *p)
|
||||
|
||||
sendingPacket = p;
|
||||
return p->encrypted.size + sizeof(PacketHeader);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user