Skip to content

Compiling for 32 bit #953

@davidsteed

Description

@davidsteed

What version of Go are you using (go version)?1.12.5

$ go version

What version of Badger are you using?latest

Does this issue reproduce with the latest master?yes

What are the hardware specifications of the machine (RAM, OS, Disk)?N/A

What did you do?Compile 32 bit

What did you expect to see?

What did you see instead?

./../github.com/dgraph-io/badger/table/builder.go:134:27: constant 4294967295 overflows int
../../github.com/dgraph-io/badger/table/builder.go:186:47: constant 4294967295 overflows int
../../github.com/dgraph-io/badger/table/builder.go:204:28: constant 4294967295 overflows int
../../github.com/dgraph-io/badger/table/builder.go:272:17: constant 4294967295 overflows int
../../github.com/dgraph-io/badger/table/builder.go:304:17: constant 4294967295 overflows int

In builder.go everywhere it has math.MaxUint32 I think it should be math.MaxInt32.

I made this change locally and all is OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions