mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-28 14:47:09 +01:00
Minor adjustments to the code and several bug-fixes.
This commit is contained in:
1 parent
5f4b175005
commit
3ce06d8cbc
4 files changed
+155
-92
No files matched your search
@@ -225,7 +225,7 @@ Int64 Chrono::DateRangeToSeconds(Uint16 _year, Uint8 _month, Uint8 _day, Uint16
|
||||
// Are we within the same year?
|
||||
if (_year == year_)
|
||||
{
|
||||
return std::abs((DayOfYear(_year, _month, _day) - DayOfYear(year_, month_, day_)) * 86400ULL);
|
||||
return std::abs((DayOfYear(_year, _month, _day) - DayOfYear(year_, month_, day_)) * 86400LL);
|
||||
}
|
||||
// Is the start year greater than the end year?
|
||||
else if (_year > year_)
|
||||
|
||||
@@ -516,7 +516,7 @@ static SQInteger SplitWhereCharImpl(HSQUIRRELVM vm, int(*fn)(int), bool neg)
|
||||
if ((fn(*itr) == 0) == neg)
|
||||
{
|
||||
// Are there any characters before this match?
|
||||
if ((itr - last) > 0 && (last != '\0'))
|
||||
if ((itr - last) > 0 && (*last != '\0'))
|
||||
{
|
||||
// Push this chunk of string on the stack
|
||||
sq_pushstring(vm, last, itr - last);
|
||||
|
||||
Reference in new issue
Block a user