Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: compile error. #47

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
vendor/

.idea/
2 changes: 1 addition & 1 deletion luar.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func luaToString(L *lua.State, idx int) string {
case lua.LUA_TNIL:
return "nil"
}
return fmt.Sprintf("%s: %p", L.LTypename(idx), L.ToPointer(idx))
return fmt.Sprintf("%s: %d", L.LTypename(idx), L.ToPointer(idx))
}

func luaDesc(L *lua.State, idx int) string {
Expand Down
4 changes: 2 additions & 2 deletions luar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ func TestLuaObjectIter(t *testing.T) {

wantValues := map[string]float64{"foo": 10, "bar": 20}
if !reflect.DeepEqual(values, wantValues) {
t.Errorf("got %q, want %q", keys, wantValues)
t.Errorf("got %q, want %v", keys, wantValues)
}

checkStack(t, L)
Expand Down Expand Up @@ -888,7 +888,7 @@ func TestLuaObjectIterMT(t *testing.T) {

wantValues := map[string]float64{"foo": 10, "bar": 20}
if !reflect.DeepEqual(values, wantValues) {
t.Errorf("got %q, want %q", keys, wantValues)
t.Errorf("got %q, want %v", keys, wantValues)
}

checkStack(t, L)
Expand Down