Skip to content
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

Panic when allocating to big numbers #77

Open
jacanales opened this issue Jan 14, 2021 · 1 comment
Open

Panic when allocating to big numbers #77

jacanales opened this issue Jan 14, 2021 · 1 comment

Comments

@jacanales
Copy link

When trying to allocate an amount to a big amount net, it results on a panic error.

How to reproduce:

Link: https://play.golang.org/p/lZaEXY0Jaqg

package main

import (
	"github.com/Rhymond/go-money"
)

func main() {	
	net := money.New(2911127909321522, "EUR")
	net.Allocate(30000)
}
@Rhymond
Copy link
Owner

Rhymond commented Apr 15, 2021

thanks, @jacanales,
I'm going to take a look at it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants