diff options
| author | unwox <me@unwox.com> | 2025-10-30 17:22:26 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-10-30 17:23:04 +0600 |
| commit | 8328e4d78455eaa3627455469c7517f6805c6da3 (patch) | |
| tree | 96991c3f0fce5c0b7ebf6a3a6cfa20fac9780781 /lua_common.go | |
| parent | 06d94fe7f16e8985878a24332978731439599c4e (diff) | |
Diffstat (limited to 'lua_common.go')
| -rw-r--r-- | lua_common.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua_common.go b/lua_common.go index 29fdab9..616beea 100644 --- a/lua_common.go +++ b/lua_common.go @@ -42,12 +42,12 @@ func (l *Lua) PushAny(v any) error { switch v.(type) { case nil: l.PushNil() - case string: - v, _ := v.(string) - l.PushString(v) case func (l *Lua) int: v, _ := v.(func (l *Lua) int) l.PushGoFunction(v) + case string: + v, _ := v.(string) + l.PushString(v) case int: v, _ := v.(int) l.PushNumber(v) |
