mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	Typo fix
Typo fix in function's header comment.
This commit is contained in:
		
							parent
							
								
									0dfdc789d3
								
							
						
					
					
						commit
						b66049c14f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -70,7 +70,7 @@ func wire_decode_uint64(bs []byte) (uint64, int) {
 | 
			
		|||
 | 
			
		||||
// Converts an int64 into uint64 so it can be written to the wire.
 | 
			
		||||
// Non-negative integers are mapped to even integers: 0 -> 0, 1 -> 2, etc.
 | 
			
		||||
// Negative integres are mapped to odd integes: -1 -> 1, -2 -> 3, etc.
 | 
			
		||||
// Negative integers are mapped to odd integers: -1 -> 1, -2 -> 3, etc.
 | 
			
		||||
// This means the least significant bit is a sign bit.
 | 
			
		||||
func wire_intToUint(i int64) uint64 {
 | 
			
		||||
	return ((uint64(-(i+1))<<1)|0x01)*(uint64(i)>>63) + (uint64(i)<<1)*(^uint64(i)>>63)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue