From bf25f73002b2f5ecaac92d5c29a24ffef7026873 Mon Sep 17 00:00:00 2001 From: Andrew Binstock <920630+platypusguy@users.noreply.github.com> Date: Sat, 16 Nov 2024 12:18:59 -0800 Subject: [PATCH] JACOBIN-608 Converted arrays in HexFormat to slices --- src/config/buildno.go | 2 +- src/gfunction/javaUtilHexFormat.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config/buildno.go b/src/config/buildno.go index a717c1da..89e943c6 100644 --- a/src/config/buildno.go +++ b/src/config/buildno.go @@ -8,4 +8,4 @@ package config -var BuildNo = 3247 \ No newline at end of file +var BuildNo = 3248 \ No newline at end of file diff --git a/src/gfunction/javaUtilHexFormat.go b/src/gfunction/javaUtilHexFormat.go index 41bfec27..ec527acd 100644 --- a/src/gfunction/javaUtilHexFormat.go +++ b/src/gfunction/javaUtilHexFormat.go @@ -22,7 +22,7 @@ func Load_Util_HexFormat() { // hashMapHash accepts a pointer to an object and returns // a uint64 MD5 hash value of the pointed-to thing func hexMapClinit(params []interface{}) interface{} { - DIGITS := [256]int8{ + DIGITS := []int8{ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -43,14 +43,14 @@ func hexMapClinit(params []interface{}) interface{} { sDigits := statics.Static{Type: "[B", Value: DIGITS} statics.AddStatic("java/util/HexFormat.DIGITS", sDigits) - UPPERCASE_DIGITS := [16]int8{ + UPPERCASE_DIGITS := []int8{ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', } sUppercaseDigits := statics.Static{Type: "[B", Value: UPPERCASE_DIGITS} statics.AddStatic("java/util/HexFormat.UPPERCASE_DIGITS", sUppercaseDigits) - LOWERCASE_DIGITS := [16]int8{ + LOWERCASE_DIGITS := []int8{ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', }