mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	GH-131296: fix clang-cl warning on Windows in pytime.c (GH-131297)
fix warning : integer literal is too large to be represented in a signed integer type, interpreting as unsigned [-Wimplicitly-unsigned-literal]
This commit is contained in:
		
							parent
							
								
									faa80fcf46
								
							
						
					
					
						commit
						f104c19a94
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -915,7 +915,7 @@ py_get_system_clock(PyTime_t *tp, _Py_clock_info_t *info, int raise_exc) | ||||||
|     /* 11,644,473,600,000,000,000: number of nanoseconds between
 |     /* 11,644,473,600,000,000,000: number of nanoseconds between
 | ||||||
|        the 1st january 1601 and the 1st january 1970 (369 years + 89 leap |        the 1st january 1601 and the 1st january 1970 (369 years + 89 leap | ||||||
|        days). */ |        days). */ | ||||||
|     PyTime_t ns = large.QuadPart * 100 - 11644473600000000000; |     PyTime_t ns = (large.QuadPart - 116444736000000000) * 100; | ||||||
|     *tp = ns; |     *tp = ns; | ||||||
|     if (info) { |     if (info) { | ||||||
|         // GetSystemTimePreciseAsFileTime() is implemented using
 |         // GetSystemTimePreciseAsFileTime() is implemented using
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Chris Eibl
						Chris Eibl