Unified · Split
| @@ -42,7 +42,7 @@ Bu64le(Biobuf *b, u64int *o) · 41 unmodified lines | ||
| 42 | 42 | int x, i; |
| 43 | 43 | |
| 44 | 44 | *o = 0; |
| 45 | − for(i = 0; i < 8; *o |= x<<(i*8), i++){ | |
| 45 | + for(i = 0; i < 8; *o |= (uvlong)x<<(i*8), i++){ | |
| 46 | 46 | if((x = Bgetc(b)) < 0){ |
| 47 | 47 | werrstr("failed to read 8 bytes"); |
| 48 | 48 | return -1; |
| @@ -89,7 +89,7 @@ err: · 40 unmodified lines | ||
| 89 | 89 | static u64int |
| 90 | 90 | ivfns(IVF *ivf, u64int ts) |
| 91 | 91 | { |
| 92 | − return ts * ivf->tbnum * 1000000000ULL / ivf->tbdenum; | |
| 92 | + return ts * (ivf->tbnum * 1000000000ULL / ivf->tbdenum); | |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | int |