mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
update and fix CI issues
This commit is contained in:
parent
d26c41fada
commit
cbdf21f2d8
1 changed files with 3 additions and 3 deletions
|
@ -223,9 +223,9 @@ IBox<DateDifference> ^ DateCalculationEngine::TryGetDateDifference(_In_ DateTime
|
||||||
}
|
}
|
||||||
catch (Platform::InvalidArgumentException ^)
|
catch (Platform::InvalidArgumentException ^)
|
||||||
{
|
{
|
||||||
// Operation failed due to out of bound result
|
// Operation failed due to out of bound result (e.g., adding 1 more year would exceed max supported date)
|
||||||
// For example: 31st Dec, 9999 - last valid date
|
// Treat this as having reached the closest value for this unit and stop incrementing further.
|
||||||
return nullptr;
|
isEndDateHit = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (tempDaysDiff != 0); // dates are the same - exit the loop
|
} while (tempDaysDiff != 0); // dates are the same - exit the loop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue