fix compiler warning
This commit is contained in:
		
							parent
							
								
									83780d4764
								
							
						
					
					
						commit
						1f0daf1eff
					
				| @ -70,19 +70,19 @@ int der_encode_generalizedtime(ltc_generalizedtime *gtime, | |||||||
|     STORE_V(gtime->ss); |     STORE_V(gtime->ss); | ||||||
| 
 | 
 | ||||||
|     if (gtime->fs) { |     if (gtime->fs) { | ||||||
|        unsigned long div; |        unsigned long divisor; | ||||||
|        unsigned fs = gtime->fs; |        unsigned fs = gtime->fs; | ||||||
|        unsigned len = 0; |        unsigned len = 0; | ||||||
|        out[x++] = der_ia5_char_encode('.'); |        out[x++] = der_ia5_char_encode('.'); | ||||||
|        div = 1; |        divisor = 1; | ||||||
|        do { |        do { | ||||||
|           fs /= 10; |           fs /= 10; | ||||||
|           div *= 10; |           divisor *= 10; | ||||||
|           len++; |           len++; | ||||||
|        } while(fs != 0); |        } while(fs != 0); | ||||||
|        while (len-- > 1) { |        while (len-- > 1) { | ||||||
|           out[x++] = der_ia5_char_encode(baseten[(gtime->fs/div) % 10]); |           out[x++] = der_ia5_char_encode(baseten[(gtime->fs/divisor) % 10]); | ||||||
|           div /= 10; |           divisor /= 10; | ||||||
|        } |        } | ||||||
|        out[x++] = der_ia5_char_encode(baseten[gtime->fs % 10]); |        out[x++] = der_ia5_char_encode(baseten[gtime->fs % 10]); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user