From ce04e5f5ce4d54cc743bd3ac82f261f5b2d1ecc0 Mon Sep 17 00:00:00 2001 From: Alan Noble Date: Tue, 21 Aug 2018 17:58:04 +0930 Subject: [PATCH] revid: convert size for realloc to int32 so that compiler doesn't complain when on go1.10 --- rtmp/rtmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 7b270949..e2957663 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -3856,7 +3856,7 @@ func AMF3CD_AddProp(cd *C.AMF3ClassDef, prop *C_AVal) { */ func realloc(ptr unsafe.Pointer, newSize uint32) unsafe.Pointer { return unsafe.Pointer(crt.Xrealloc(crt.TLS(uintptr(unsafe.Pointer(nil))), - uintptr(ptr), uint64(newSize))) + uintptr(ptr), uint32(newSize))) /* var curSize uint32 var newPtr unsafe.Pointer