diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/local_time.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/local_time.cc b/src/local_time.cc index c8576584..1bedb9bd 100644 --- a/src/local_time.cc +++ b/src/local_time.cc @@ -281,6 +281,8 @@ LocalTime::operator== (LocalTime const & other) const bool LocalTime::operator< (LocalTime const & other) const { + DCP_ASSERT(_offset == other._offset); + if (_year != other._year) { return _year < other._year; } |
