another msvc warnings: 32-bit shift implicitly converted to 64 bits
This commit is contained in:
		
							parent
							
								
									6d56e11b1b
								
							
						
					
					
						commit
						9bac5dd954
					
				
							
								
								
									
										6
									
								
								bn_mp_exptmod_fast.c
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										6
									
								
								bn_mp_exptmod_fast.c
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @ -165,15 +165,15 @@ int mp_exptmod_fast(const mp_int *G, const mp_int *X, const mp_int *P, mp_int *Y | |||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|    /* compute the value at M[1<<(winsize-1)] by squaring M[1] (winsize-1) times */ |    /* compute the value at M[1<<(winsize-1)] by squaring M[1] (winsize-1) times */ | ||||||
|    if ((err = mp_copy(&M[1], &M[1 << (winsize - 1)])) != MP_OKAY) { |    if ((err = mp_copy(&M[1], &M[(size_t)1 << (winsize - 1)])) != MP_OKAY) { | ||||||
|       goto LBL_RES; |       goto LBL_RES; | ||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|    for (x = 0; x < (winsize - 1); x++) { |    for (x = 0; x < (winsize - 1); x++) { | ||||||
|       if ((err = mp_sqr(&M[1 << (winsize - 1)], &M[1 << (winsize - 1)])) != MP_OKAY) { |       if ((err = mp_sqr(&M[(size_t)1 << (winsize - 1)], &M[(size_t)1 << (winsize - 1)])) != MP_OKAY) { | ||||||
|          goto LBL_RES; |          goto LBL_RES; | ||||||
|       } |       } | ||||||
|       if ((err = redux(&M[1 << (winsize - 1)], P, mp)) != MP_OKAY) { |       if ((err = redux(&M[(size_t)1 << (winsize - 1)], P, mp)) != MP_OKAY) { | ||||||
|          goto LBL_RES; |          goto LBL_RES; | ||||||
|       } |       } | ||||||
|    } |    } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user