-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TraceNumber should be int64 #236
Comments
Due to ACH limitations you'd probably be better off capping values in the library than expanding to a different date. |
When I run all from gosec I don't receive the integer overflow, but I'm 64bit System Type x64-based PC |
We could potentially use the parsing functions for 32 bit, Adam can you run that down, to see if it that is viable? func (c *converters) parseNumField(r string) (s int64) { func (c *converters) parseNumField(r string) (s uint64) {
|
From an ACH document page:
From the Go docs: https://golang.org/pkg/builtin/#int
Obviously this holds true then: Is this a problem? @wadearnold do you know if we'd ever install on a 32-bit platform? I don't think we would. Closing. If this is a problem we can re-open this issue. |
@wadearnold should we not allow compiling this code on 32 (and 48) bit go arch's? There's some unexpected behaviour like this. |
#244 mentions 32-bit platforms aren't supported. |
A quick run of https://github.com/alecthomas/gometalinter (which can be ran for free on PR's via https://golangci.com/) gives the following error.
This would be a breaking change as int -> int64 isn't automatic.
I'm also running this on a 32-bit machine (yea, I know...), so that might be it. I thought Go defaulted
int
toint64
though..The text was updated successfully, but these errors were encountered: