mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Stop GCC warning about int literal that's so long that it becomes an
unsigned int (on a 32-bit machine), by adding an explicit 'u' to the literal (a prime used to improve the hash function for frozenset).
This commit is contained in:
		
							parent
							
								
									0bba722fff
								
							
						
					
					
						commit
						5f4e45d66f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -727,7 +727,7 @@ frozenset_hash(PyObject *self) | |||
| 		   use cases have many combinations of a small number of  | ||||
| 		   elements with nearby hashes so that many distinct combinations | ||||
| 		   collapse to only a handful of distinct hash values. */ | ||||
| 		hash ^= PyObject_Hash(item) * 3644798167; | ||||
| 		hash ^= PyObject_Hash(item) * 3644798167u; | ||||
| 		Py_DECREF(item); | ||||
| 	} | ||||
| 	Py_DECREF(it); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum