diff options
author | 2021-09-08 21:26:32 +0100 | |
---|---|---|
committer | 2021-09-08 21:26:32 +0100 | |
commit | a027da0ac9b6aa10fe26a7a0c5eea35859b1c270 (patch) | |
tree | 23b954a01a64f2751b3f774052c296fcaa8068e3 /vendor/modernc.org/libc/libc_windows.go | |
parent | Merge pull request #196 from NyaaaWhatsUpDoc/update/oauth-library (diff) | |
parent | Merge remote-tracking branch 'upstream/main' into update/sqlite-library (diff) | |
download | gotosocial-a027da0ac9b6aa10fe26a7a0c5eea35859b1c270.tar.xz |
Merge pull request #198 from NyaaaWhatsUpDoc/update/sqlite-library
Update/sqlite library
Diffstat (limited to 'vendor/modernc.org/libc/libc_windows.go')
-rw-r--r-- | vendor/modernc.org/libc/libc_windows.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vendor/modernc.org/libc/libc_windows.go b/vendor/modernc.org/libc/libc_windows.go index f50f8c475..8959dab57 100644 --- a/vendor/modernc.org/libc/libc_windows.go +++ b/vendor/modernc.org/libc/libc_windows.go @@ -226,24 +226,21 @@ func newFile(t *TLS, fd int32) uintptr { if err != nil { panic("no console") } - f := addFile(h, fd) - return uintptr(unsafe.Pointer(f)) + return addFile(h, fd) } if fd == unistd.STDOUT_FILENO { h, err := syscall.GetStdHandle(syscall.STD_OUTPUT_HANDLE) if err != nil { panic("no console") } - f := addFile(h, fd) - return uintptr(unsafe.Pointer(f)) + return addFile(h, fd) } if fd == unistd.STDERR_FILENO { h, err := syscall.GetStdHandle(syscall.STD_ERROR_HANDLE) if err != nil { panic("no console") } - f := addFile(h, fd) - return uintptr(unsafe.Pointer(f)) + return addFile(h, fd) } // should not get here -- unless newFile |