mirror of https://bitbucket.org/ausocean/av.git
rtmp: changed call to allocate to call to malloc as allocate does not exist anymore
This commit is contained in:
parent
5f7d84a120
commit
6dd791f7e1
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue