revid: convert size for realloc to int32 so that compiler doesn't complain when on go1.10

This commit is contained in:
Alan Noble 2018-08-21 17:58:04 +09:30
parent aae9acdd64
commit ce04e5f5ce
1 changed files with 1 additions and 1 deletions

View File

@ -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