From 1e55dd47f251ae588fb418ac29cbc6a0ae741e69 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 9 May 2022 23:00:23 +0200 Subject: Update dependencies (#1831) --- vendor/modernc.org/ccgo/v3/lib/init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor/modernc.org/ccgo/v3/lib/init.go') diff --git a/vendor/modernc.org/ccgo/v3/lib/init.go b/vendor/modernc.org/ccgo/v3/lib/init.go index db3ad913..75bdc668 100644 --- a/vendor/modernc.org/ccgo/v3/lib/init.go +++ b/vendor/modernc.org/ccgo/v3/lib/init.go @@ -326,7 +326,7 @@ func (p *project) containingStructField(part *cc.Initializer, off uintptr, t cc. } } - panic(todo("%v: internal error", pos(part))) + panic(todo("%v: internal error", p.pos(part))) } func (p *project) initializerUnion(tag string, off uintptr, f *function, s []*cc.Initializer, t cc.Type, sc cc.StorageClass, tld *tld, lm, tm map[*cc.Initializer][]cc.StringID) { @@ -376,7 +376,7 @@ func (p *project) initializerUnion(tag string, off uintptr, f *function, s []*cc } continue default: - panic(todo("%v: %v <- %T", pos(part), et, x)) + panic(todo("%v: %v <- %T", p.pos(part), et, x)) } case p.isWCharType(et): panic(todo("")) -- cgit v1.2.3