mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	bpo-31849: Fix warning in pyhash.c (GH-6799)
This commit is contained in:
		
							parent
							
								
									f7745e1dcb
								
							
						
					
					
						commit
						a8eb58546b
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -0,0 +1 @@ | ||||||
|  | Fix signed/unsigned comparison warning in pyhash.c. | ||||||
|  | @ -272,8 +272,8 @@ fnv(const void *src, Py_ssize_t len) | ||||||
|         x = (_PyHASH_MULTIPLIER * x) ^ (Py_uhash_t) *p++; |         x = (_PyHASH_MULTIPLIER * x) ^ (Py_uhash_t) *p++; | ||||||
|     x ^= (Py_uhash_t) len; |     x ^= (Py_uhash_t) len; | ||||||
|     x ^= (Py_uhash_t) _Py_HashSecret.fnv.suffix; |     x ^= (Py_uhash_t) _Py_HashSecret.fnv.suffix; | ||||||
|     if (x == -1) { |     if (x == (Py_uhash_t) -1) { | ||||||
|         x = -2; |         x = (Py_uhash_t) -2; | ||||||
|     } |     } | ||||||
|     return x; |     return x; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 A. Jesse Jiryu Davis
						A. Jesse Jiryu Davis