mirror of https://bitbucket.org/ausocean/av.git
revid: convert size for realloc to int32 so that compiler doesn't complain when on go1.10
This commit is contained in:
parent
aae9acdd64
commit
ce04e5f5ce
|
@ -3856,7 +3856,7 @@ func AMF3CD_AddProp(cd *C.AMF3ClassDef, prop *C_AVal) {
|
||||||
*/
|
*/
|
||||||
func realloc(ptr unsafe.Pointer, newSize uint32) unsafe.Pointer {
|
func realloc(ptr unsafe.Pointer, newSize uint32) unsafe.Pointer {
|
||||||
return unsafe.Pointer(crt.Xrealloc(crt.TLS(uintptr(unsafe.Pointer(nil))),
|
return unsafe.Pointer(crt.Xrealloc(crt.TLS(uintptr(unsafe.Pointer(nil))),
|
||||||
uintptr(ptr), uint64(newSize)))
|
uintptr(ptr), uint32(newSize)))
|
||||||
/*
|
/*
|
||||||
var curSize uint32
|
var curSize uint32
|
||||||
var newPtr unsafe.Pointer
|
var newPtr unsafe.Pointer
|
||||||
|
|
Loading…
Reference in New Issue