diff options
author | 2025-02-14 16:54:10 +0000 | |
---|---|---|
committer | 2025-02-14 16:54:10 +0000 | |
commit | ebbdeee0bb91d5008a405e43114f1653ecdf8ce8 (patch) | |
tree | d9b1c087a34e6f5947d553f7cb04503b3c411e93 /vendor/modernc.org/libc/libc.go | |
parent | [bugfix] Drop status indices AFTER updating visibility (#3795) (diff) | |
download | gotosocial-ebbdeee0bb91d5008a405e43114f1653ecdf8ce8.tar.xz |
bump modernc.org/sqlite to v1.35.0-concurrency-workaround (#3797)
Diffstat (limited to 'vendor/modernc.org/libc/libc.go')
-rw-r--r-- | vendor/modernc.org/libc/libc.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vendor/modernc.org/libc/libc.go b/vendor/modernc.org/libc/libc.go index 031e7119c..2a7988bd4 100644 --- a/vendor/modernc.org/libc/libc.go +++ b/vendor/modernc.org/libc/libc.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build !(linux && (amd64 || arm64 || loong64)) +//go:build !linux || mips64le //go.generate echo package libc > ccgo.go //go:generate go fmt ./... @@ -722,7 +722,12 @@ func X__builtin_object_size(t *TLS, p uintptr, typ int32) types.Size_t { if __ccgo_strace { trc("t=%v p=%v typ=%v, (%v:)", t, p, typ, origin(2)) } - return ^types.Size_t(0) //TODO frontend magic + switch typ { + case 0, 1: + return ^types.Size_t(0) + default: + return 0 + } } var atomicLoadStore16 sync.Mutex |