gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot')
-rw-r--r--agg-plot/window_registry.cpp 7
1 files changed, 2 insertions, 5 deletions
diff --git a/agg-plot/window_registry.cpp b/agg-plot/window_registry.cpp
index 0ebfa499..c09539bc 100644
--- a/agg-plot/window_registry.cpp
+++ b/agg-plot/window_registry.cpp
@@ -18,14 +18,11 @@ window_registry_prepare (lua_State *L)
int
window_index_add(lua_State *L, int index)
{
- int n;
-
- if (index < 0)
- index = lua_gettop (L) - (index+1);
+ INDEX_SET_ABS(L, index);
lua_getfield (L, LUA_REGISTRYINDEX, registry_tname);
- n = lua_objlen (L, -1);
+ int n = lua_objlen (L, -1);
lua_pushvalue (L, index);
lua_rawseti (L, -2, n+1);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月17日 17:32:46 +0000

AltStyle によって変換されたページ (->オリジナル) /