From 29ac92dc0b2e621e48334f2dd8646098900c7de8 Mon Sep 17 00:00:00 2001 From: sammyette Date: Sun, 21 Jul 2024 11:40:13 -0400 Subject: [PATCH] fix: int64/int mixup, missing imports --- lua_exec.go | 1 + moonlight/value_golua.go | 4 ++-- rl_notmidnight.go | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lua_exec.go b/lua_exec.go index ad279dd..8fca346 100644 --- a/lua_exec.go +++ b/lua_exec.go @@ -5,6 +5,7 @@ import ( "fmt" "hilbish/moonlight" + rt "github.com/arnodel/golua/runtime" ) func handleLua(input string) (string, uint8, error) { diff --git a/moonlight/value_golua.go b/moonlight/value_golua.go index eae19f9..5989f96 100644 --- a/moonlight/value_golua.go +++ b/moonlight/value_golua.go @@ -24,8 +24,8 @@ func StringValue(str string) Value { return rt.StringValue(str) } -func IntValue(i int) Value { - return rt.IntValue(int64(i)) +func IntValue(i int64) Value { + return rt.IntValue(i) } func BoolValue(b bool) Value { diff --git a/rl_notmidnight.go b/rl_notmidnight.go index 0b1e8d3..219439f 100644 --- a/rl_notmidnight.go +++ b/rl_notmidnight.go @@ -2,6 +2,8 @@ package main import ( + "hilbish/util" + rt "github.com/arnodel/golua/runtime" "github.com/maxlandon/readline" )