Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Native support for ARM #137

Merged
merged 6 commits into from
Jun 10, 2016
Merged

Conversation

shuangjj
Copy link
Contributor

@zramsay
Copy link
Contributor

zramsay commented Jun 10, 2016

LGTM, @benjaminbollen @silasdavis can we get a 👍 for the changes in the edb binary

@@ -1,3 +1,5 @@
// +build !arm
Copy link
Contributor

@benjaminbollen benjaminbollen Jun 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this line do? OK, golang never ceases to amaze.

@benjaminbollen
Copy link
Contributor

As an additional point, e-db is undergoing a restructuring, so we will have to port these changes to the new branches (ideally discuss-eris-gateway), but we can take this onboard as we make the transition

@benjaminbollen
Copy link
Contributor

The changes in blockchain.go refer to MaxUInt32 which is replaced by MaxInt32? This only occurs in this file?

if fd.Value == "min" {
val = 0
} else if fd.Value == "max" {
val = math.MaxInt32
Copy link
Contributor Author

@shuangjj shuangjj Jun 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var val int should be signed 32-bit integer on ARM v6 or v7, but the assignment val = math.MaxUint32 will overflow it. I tried to change the val type to uint32, but that would incur many other compilation errors. So the workaround for 32-bit ARM is to change the assignment to val = math.MaxInt32.

@benjaminbollen
Copy link
Contributor

Please note that this will be overwritten as these files have moved in the restructuring of the consensus and pipe code. The preferred solution will be to use uint64 (or uint32 if someone wants to argue for that as a max height), and replace the types consistently everywhere.

@zramsay thanks for linking this PR in a new issue

@benjaminbollen benjaminbollen merged commit 86e85f6 into hyperledger-archives:develop Jun 10, 2016
silasdavis pushed a commit to silasdavis/burrow that referenced this pull request Mar 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants