Skip to content

Commit

Permalink
Fix type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
bohde committed Mar 8, 2017
1 parent d259f78 commit b49c135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/histogram/cmd/test-histogram/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ func main() {
input[i] = uint32(uint16(rand.Uint32()))
}

buff := world.Malloc(xcl.ReadOnly, binary.Size(input))
buff := world.Malloc(xcl.ReadOnly, uint(binary.Size(input)))
defer buff.Free()

resp := make([]byte, 4*HISTOGRAM_WIDTH)
outputBuff := world.Malloc(xcl.ReadWrite, binary.Size(resp))
outputBuff := world.Malloc(xcl.ReadWrite, uint(binary.Size(resp)))
defer outputBuff.Free()

binary.Write(inputBuff.Writer(), binary.LittleEndian, &input)
binary.Write(buff.Writer(), binary.LittleEndian, &input)

outputBuff.Write(resp)

Expand Down

0 comments on commit b49c135

Please sign in to comment.