Switching to wsl
This commit is contained in:
@@ -19,7 +19,7 @@ func Write(args ...object.Object) object.Object {
|
||||
fd := int(args[0].(*object.Integer).Value)
|
||||
data := []byte(args[1].(*object.String).Value)
|
||||
|
||||
n, err := syscall.Write(syscall.Handle(fd), data)
|
||||
n, err := syscall.Write(fd, data)
|
||||
if err != nil {
|
||||
return newError("IOError: %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user