diff options
Diffstat (limited to 'vendor/github.com/bytedance/sonic/internal/encoder/x86/stbus.go')
| -rw-r--r-- | vendor/github.com/bytedance/sonic/internal/encoder/x86/stbus.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/bytedance/sonic/internal/encoder/x86/stbus.go b/vendor/github.com/bytedance/sonic/internal/encoder/x86/stbus.go index 7b6b1f96b..45bb97289 100644 --- a/vendor/github.com/bytedance/sonic/internal/encoder/x86/stbus.go +++ b/vendor/github.com/bytedance/sonic/internal/encoder/x86/stbus.go @@ -21,6 +21,7 @@ import ( _ "unsafe" "github.com/bytedance/sonic/internal/encoder/alg" + "github.com/bytedance/sonic/internal/encoder/prim" "github.com/bytedance/sonic/internal/encoder/vars" "github.com/bytedance/sonic/internal/rt" "github.com/bytedance/sonic/loader" @@ -39,7 +40,7 @@ func ptoenc(p loader.Function) vars.Encoder { func EncodeTypedPointer(buf *[]byte, vt *rt.GoType, vp *unsafe.Pointer, sb *vars.Stack, fv uint64) error { if vt == nil { - return alg.EncodeNil(buf) + return prim.EncodeNil(buf) } else if fn, err := vars.FindOrCompile(vt, (fv&(1<<alg.BitPointerValue)) != 0, compiler); err != nil { return err } else if vt.Indirect() { |
