From fc90adf8e367e65038c818434bf7f69865c258d5 Mon Sep 17 00:00:00 2001 From: Matteo Merli Date: Mon, 30 Oct 2023 08:56:58 -0700 Subject: [PATCH] Fix parse uint to use signed integer (#377) --- server/session_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/session_manager.go b/server/session_manager.go index 7c9f49de..d06a8fb0 100644 --- a/server/session_manager.go +++ b/server/session_manager.go @@ -51,7 +51,7 @@ func KeyToId(key string) (SessionId, error) { } s := key[len(KeyPrefix):] s = s[:len(s)-1] - longInt, err := strconv.ParseUint(s, 16, 64) + longInt, err := strconv.ParseInt(s, 16, 64) if err != nil { return 0, err }