Skip to content

Commit d2331e7

Browse files
committed
fix convertor_for_return<tuple<>> check exists
1 parent 383046f commit d2331e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/peacalm/luaw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4725,7 +4725,7 @@ struct luaw::convertor_for_return<std::tuple<Ts...>> {
47254725
bool* failed = nullptr,
47264726
bool* exists = nullptr) {
47274727
if (failed) *failed = false;
4728-
if (exists) *exists = false;
4728+
if (exists) *exists = !l.isnoneornil(idx);
47294729
}
47304730
};
47314731

0 commit comments

Comments
 (0)