mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Don't use hex constants representing negative numbers.
This commit is contained in:
		
							parent
							
								
									dc15c27f50
								
							
						
					
					
						commit
						558fc977c5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -249,7 +249,7 @@ def testInterpreterCrash(self):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def testNtoH(self):
 | 
					    def testNtoH(self):
 | 
				
			||||||
        for func in socket.htonl, socket.ntohl:
 | 
					        for func in socket.htonl, socket.ntohl:
 | 
				
			||||||
            for i in (0, 1, 0xffff0000, 2L):
 | 
					            for i in (0, 1, ~0xffff, 2L):
 | 
				
			||||||
                self.assertEqual(i, func(func(i)))
 | 
					                self.assertEqual(i, func(func(i)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            biglong = 2**32L - 1
 | 
					            biglong = 2**32L - 1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue