fix compiler warning when compiling with "-mx32" option
This commit is contained in:
		
							parent
							
								
									940bef18cd
								
							
						
					
					
						commit
						5a2a00ffba
					
				@ -31,9 +31,11 @@ unsigned long mp_get_long(mp_int * a)
 | 
				
			|||||||
  /* get most significant digit of result */
 | 
					  /* get most significant digit of result */
 | 
				
			||||||
  res = DIGIT(a,i);
 | 
					  res = DIGIT(a,i);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if ULONG_MAX != 0xfffffffful || DIGIT_BIT < 32
 | 
				
			||||||
  while (--i >= 0) {
 | 
					  while (--i >= 0) {
 | 
				
			||||||
    res = (res << DIGIT_BIT) | DIGIT(a,i);
 | 
					    res = (res << DIGIT_BIT) | DIGIT(a,i);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
  return res;
 | 
					  return res;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user