diff options
author | George Zhao <zhaozg@aliyun.com> | 2018-06-03 20:08:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-03 20:08:02 +0800 |
commit | e1e41be948196a98af67345d51fe7a238c850c54 (patch) | |
tree | 99d88fddae489edd7301533f8967e79c6b43a1ed | |
parent | 652959890943c34d7180cae372339b91e62f0d7b (diff) | |
download | luasocket-e1e41be948196a98af67345d51fe7a238c850c54.tar.gz luasocket-e1e41be948196a98af67345d51fe7a238c850c54.tar.bz2 luasocket-e1e41be948196a98af67345d51fe7a238c850c54.zip |
Update auxiliar.c
-rw-r--r-- | src/auxiliar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auxiliar.c b/src/auxiliar.c index 18fa8e4..5251549 100644 --- a/src/auxiliar.c +++ b/src/auxiliar.c | |||
@@ -143,7 +143,7 @@ void *auxiliar_getgroupudata(lua_State *L, const char *groupname, int objidx) { | |||
143 | * otherwise | 143 | * otherwise |
144 | \*-------------------------------------------------------------------------*/ | 144 | \*-------------------------------------------------------------------------*/ |
145 | void *auxiliar_getclassudata(lua_State *L, const char *classname, int objidx) { | 145 | void *auxiliar_getclassudata(lua_State *L, const char *classname, int objidx) { |
146 | return luaL_checkudata(L, objidx, classname); | 146 | return luaL_testudata(L, objidx, classname); |
147 | } | 147 | } |
148 | 148 | ||
149 | /*-------------------------------------------------------------------------*\ | 149 | /*-------------------------------------------------------------------------*\ |