i needs to be treated as signed to get the proper indexing on 64-bit platforms. This behavior was accidentally reverted when fixing an unsigned/signed comparison warning.
Unified · Split
| @@ -937,12 +937,13 @@ void vp8cx_vertical_band_2_1_scale_c(unsigned char *source, unsigned int src_pit · 936 unmodified lines | ||
| 937 | 937 | |
| 938 | 938 | void vp8cx_vertical_band_2_1_scale_i_c(unsigned char *source, unsigned int src_pitch, unsigned char *dest, unsigned int dest_pitch, unsigned int dest_width) |
| 939 | 939 | { |
| 940 | − unsigned int i; | |
| 940 | + int i; | |
| 941 | 941 | int temp; |
| 942 | + int width = dest_width; | |
| 942 | 943 | |
| 943 | 944 | (void) dest_pitch; |
| 944 | 945 | |
| 945 | − for (i = 0; i < dest_width; i++) | |
| 946 | + for (i = 0; i < width; i++) | |
| 946 | 947 | { |
| 947 | 948 | temp = 8; |
| 948 | 949 | temp += source[i-(int)src_pitch] * 3; |