Fix VM memory allocation optimizations by reducing what we allocate on the heap
This commit is contained in:
@@ -21,12 +21,12 @@ func Accept(args ...object.Object) object.Object {
|
||||
err error
|
||||
)
|
||||
|
||||
fd := int(args[0].(*object.Integer).Value)
|
||||
fd := int(args[0].(object.Integer).Value)
|
||||
|
||||
nfd, _, err = syscall.Accept(fd)
|
||||
if err != nil {
|
||||
return newError("SocketError: %s", err)
|
||||
}
|
||||
|
||||
return &object.Integer{Value: int64(nfd)}
|
||||
return object.Integer{Value: int64(nfd)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user