Skip to content

Commit

Permalink
Cast idx to uint64 to fix compilation on i386
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahim Jarif committed Nov 13, 2019
1 parent 8a93a41 commit dce4514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func (t *Table) block(idx int) (*block, error) {

func (t *Table) blockCacheKey(idx int) uint64 {
y.AssertTrue(t.ID() < math.MaxUint32)
y.AssertTrue(idx < math.MaxUint32)
y.AssertTrue(uint64(idx) < math.MaxUint32)
return (t.ID() << 32) | uint64(idx)
}

Expand Down

0 comments on commit dce4514

Please sign in to comment.