🎨 modernize-use-nullptr
This commit is contained in:
parent
b31061ff83
commit
bb4e1960e7
77 changed files with 1828 additions and 1828 deletions
|
|
@ -47,7 +47,7 @@ uint32_t Hash(const char *s, int type)
|
|||
{
|
||||
uint32_t seed1 = 0x7FED7FED;
|
||||
uint32_t seed2 = 0xEEEEEEEE;
|
||||
while (s != NULL && *s) {
|
||||
while (s != nullptr && *s) {
|
||||
int8_t ch = *s++;
|
||||
ch = toupper(ch);
|
||||
seed1 = hashtable[type][ch] ^ (seed1 + seed2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue