History

ivf: fix wrong timestamp values

Sigrid Solveig Haflínudóttir committed 5 years ago

Commit 93f64531 parent 8b47c3a1 file · +2 −2Browse files

Unified · Split

ivf.c+2−2
@@ -42,7 +42,7 @@ Bu64le(Biobuf *b, u64int *o) · 41 unmodified lines
4242 int x, i;
4343
4444 *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++){
4646 if((x = Bgetc(b)) < 0){
4747 werrstr("failed to read 8 bytes");
4848 return -1;
@@ -89,7 +89,7 @@ err: · 40 unmodified lines
8989 static u64int
9090 ivfns(IVF *ivf, u64int ts)
9191 {
92− return ts * ivf->tbnum * 1000000000ULL / ivf->tbdenum;
92+ return ts * (ivf->tbnum * 1000000000ULL / ivf->tbdenum);
9393 }
9494
9595 int

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t