rtmp: changed call to allocate to call to malloc as allocate does not exist anymore

This commit is contained in:
saxon 2018-08-21 18:44:26 +09:30
parent 5f7d84a120
commit 6dd791f7e1
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ func TestMemset(t *testing.T) {
size := 10 size := 10
setNum := 5 setNum := 5
testVal := byte('A') testVal := byte('A')
mem := allocate(uintptr(size)) mem := malloc(uintptr(size))
memset((*byte)(mem), int(testVal), setNum) memset((*byte)(mem), int(testVal), setNum)
for i := 0; i < size; i++ { for i := 0; i < size; i++ {
if i > setNum-1 { if i > setNum-1 {