Fix several MSVC compiler warning/errors

Change-Id: Iccaacee9b7a66b016b5747a3902c236888ad4ba1
This commit is contained in:
Yaowu Xu
2016-03-07 16:23:26 -08:00
parent 76d4fdd391
commit 28eb784e46
2 changed files with 12 additions and 10 deletions

View File

@@ -277,8 +277,8 @@ static INLINE void fetch_sym(struct rans_dec_sym *out, const rans_dec_lut cdf,
++i;
}
out->val = i - 1;
out->prob = cdf[i] - cdf[i - 1];
out->cum_prob = cdf[i - 1];
out->prob = (AnsP8)(cdf[i] - cdf[i - 1]);
out->cum_prob = (AnsP8)cdf[i - 1];
}
static INLINE int rans_read(struct AnsDecoder *ans,