From 4e99ec9e63dae704bd4e39495ee69db767d508d8 Mon Sep 17 00:00:00 2001 From: oldme Date: Mon, 2 Sep 2024 15:52:18 +0800 Subject: [PATCH] up --- internal/proto/writer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/proto/writer.go b/internal/proto/writer.go index 78595cc4f..a9e0c5a55 100644 --- a/internal/proto/writer.go +++ b/internal/proto/writer.go @@ -109,6 +109,10 @@ func (w *Writer) WriteArg(v interface{}) error { return w.uint(v) case *uint64: return w.uint(*v) + case uintptr: + return w.uint(uint64(v)) + case *uintptr: + return w.uint(uint64(*v)) case float32: return w.float(float64(v)) case *float32: