master
Daniel Kolesa 2016-08-17 18:21:24 +01:00
parent e0739608f1
commit f57d9d8d64
1 changed files with 4 additions and 1 deletions

View File

@ -13,7 +13,10 @@ static inline void cs_strgcmp(TvalRange args, TaggedValue &res, F cfunc) {
val = cfunc(args[i - 1].get_strr(), args[i].get_strr()); val = cfunc(args[i - 1].get_strr(), args[i].get_strr());
} }
} else { } else {
val = cfunc(!args.empty() ? args[0].get_strr() : ostd::ConstCharRange(), ostd::ConstCharRange()); val = cfunc(
!args.empty() ? args[0].get_strr() : ostd::ConstCharRange(),
ostd::ConstCharRange()
);
} }
res.set_int(CsInt(val)); res.set_int(CsInt(val));
}; };