Skip to content

Commit

Permalink
Merge pull request #253 from texadactyl/main
Browse files Browse the repository at this point in the history
 JACOBIN-592 JACOBIN-592 fix bigIntegerValueOf argument index
  • Loading branch information
texadactyl authored Nov 11, 2024
2 parents f6ca17d + a6ba730 commit 5f5ef60
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gfunction/javaMathBigInteger.go
Original file line number Diff line number Diff line change
Expand Up @@ -1404,10 +1404,9 @@ func bigIntegerToStringRadix(params []interface{}) interface{} {

// "java/math/BigInteger.valueOf(J)Ljava/math/BigInteger;"
func bigIntegerValueOf(params []interface{}) interface{} {
// params[0]: base object (ignored)
// params[1]: long value for returned big.Int object
// params[0]: long value for returned big.Int object

argValue := params[1].(int64)
argValue := params[0].(int64)
obj := object.MakeEmptyObjectWithClassName(&bigIntegerClassName)
initBigIntegerField(obj, argValue)

Expand Down

0 comments on commit 5f5ef60

Please sign in to comment.