| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f7745e1 commit a8eb585
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Fix signed/unsigned comparison warning in pyhash.c. | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -272,8 +272,8 @@ fnv(const void *src, Py_ssize_t len) | |||
| 272 | 272 | x = (_PyHASH_MULTIPLIER * x) ^ (Py_uhash_t) *p++; | |
| 273 | 273 | x ^= (Py_uhash_t) len; | |
| 274 | 274 | x ^= (Py_uhash_t) _Py_HashSecret.fnv.suffix; | |
| 275 | - if (x == -1) { | ||
| 276 | - x = -2; | ||
| 275 | + if (x == (Py_uhash_t) -1) { | ||
| 276 | + x = (Py_uhash_t) -2; | ||
| 277 | 277 | } | |
| 278 | 278 | return x; | |
| 279 | 279 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments