Fixed warning C4244: '=': conversion from 'Sint64' to 'int', possible loss of data

This commit is contained in:
Sam Lantinga 2024-01-22 08:39:22 -08:00
parent 61821bd876
commit 12bab1c981

View file

@ -151,9 +151,10 @@ static int SDL_UpperSoftStretch(SDL_Surface *src, const SDL_Rect *srcrect,
int i; \ int i; \
Sint64 fp_sum_h; \ Sint64 fp_sum_h; \
int fp_step_h, left_pad_h, right_pad_h; \ int fp_step_h, left_pad_h, right_pad_h; \
Sint64 fp_sum_w; \ Sint64 fp_sum_w; \
int fp_step_w, left_pad_w, right_pad_w; \ int fp_step_w, left_pad_w, right_pad_w; \
int fp_sum_w_init, left_pad_w_init, right_pad_w_init, dst_gap, middle_init; \ Sint64 fp_sum_w_init; \
int left_pad_w_init, right_pad_w_init, dst_gap, middle_init; \
get_scaler_datas(src_h, dst_h, &fp_sum_h, &fp_step_h, &left_pad_h, &right_pad_h); \ get_scaler_datas(src_h, dst_h, &fp_sum_h, &fp_step_h, &left_pad_h, &right_pad_h); \
get_scaler_datas(src_w, dst_w, &fp_sum_w, &fp_step_w, &left_pad_w, &right_pad_w); \ get_scaler_datas(src_w, dst_w, &fp_sum_w, &fp_step_w, &left_pad_w, &right_pad_w); \
fp_sum_w_init = fp_sum_w + left_pad_w * fp_step_w; \ fp_sum_w_init = fp_sum_w + left_pad_w * fp_step_w; \