replaced "long" by "size_t" in dwt.c to be sure to cast to a pointer size.
This commit is contained in:
		
							
								
								
									
										1
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								CHANGES
									
									
									
									
									
								
							| @@ -6,6 +6,7 @@ What's New for OpenJPEG | |||||||
| + : added | + : added | ||||||
|  |  | ||||||
| February 17, 2011 | February 17, 2011 | ||||||
|  | * [antonin] replaced 'long' by 'size_t' in dwt.c to be sure to cast to a pointer size. | ||||||
| * [antonin] now allows 16-bit precision for mj2 encoding and decoding (solves Issue 49 and Issue 63). Credit to Winfried. | * [antonin] now allows 16-bit precision for mj2 encoding and decoding (solves Issue 49 and Issue 63). Credit to Winfried. | ||||||
|  |  | ||||||
| February 9, 2011 | February 9, 2011 | ||||||
|   | |||||||
| @@ -570,7 +570,7 @@ static void v4dwt_interleave_h(v4dwt_t* restrict w, float* restrict a, int x, in | |||||||
| 	int count = w->sn; | 	int count = w->sn; | ||||||
| 	int i, k; | 	int i, k; | ||||||
| 	for(k = 0; k < 2; ++k){ | 	for(k = 0; k < 2; ++k){ | ||||||
| 		if (count + 3 * x < size && ((long) a & 0x0f) == 0 && ((long) bi & 0x0f) == 0 && (x & 0x0f) == 0) { | 		if (count + 3 * x < size && ((size_t) a & 0x0f) == 0 && ((size_t) bi & 0x0f) == 0 && (x & 0x0f) == 0) { | ||||||
| 			/* Fast code path */ | 			/* Fast code path */ | ||||||
| 			for(i = 0; i < count; ++i){ | 			for(i = 0; i < count; ++i){ | ||||||
| 				int j = i; | 				int j = i; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Antonin Descampe
					Antonin Descampe