From 84eeab94dd08ab33287aca6e87f1c251d2bf279f Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Tue, 24 Sep 2024 21:16:14 +0800 Subject: [PATCH] new Change-Id: Ieab593790872107f78483ffbe29f507e158b8825 --- src/hash/maphash/maphash.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hash/maphash/maphash.go b/src/hash/maphash/maphash.go index 6077a1033e..da7ed0a581 100644 --- a/src/hash/maphash/maphash.go +++ b/src/hash/maphash/maphash.go @@ -314,6 +314,7 @@ func WriteComparable[T comparable](h *Hash, x T) { // when the value cannot be directly hash raw memory, // or when purego is used. func appendT(h *Hash, v reflect.Value) { + h.WriteString(v.Type().String()) switch v.Kind() { case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: var buf [8]byte