Skip to content

Commit 9004221

Browse files
committed
Fixed a couple of warnings
1 parent 359e49c commit 9004221

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/bin/gomgen/luawrap_runtime.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ namespace LuaWrap {
268268
}
269269
};
270270

271-
template <int DIM, class CTYPE, class LUATYPE=CTYPE>
271+
template <unsigned int DIM, class CTYPE, class LUATYPE=CTYPE>
272272
class ArgArray : public ArgBase {
273273
public:
274274
ArgArray(lua_State* L, int idx) {
@@ -307,6 +307,12 @@ namespace LuaWrap {
307307
return arg1.OK() && arglist_OK(args...);
308308
}
309309

310+
inline int arglist_size() { return 0; }
311+
template <typename T, typename... Types> inline
312+
int arglist_size(const T& arg1, Types... args) {
313+
return 1 + arglist_size(args...);
314+
}
315+
310316
inline std::string arglist_missing(const std::vector<ArgBase>& args) {
311317
std::string missing;
312318
int i = 0;

0 commit comments

Comments
 (0)