File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -525,9 +525,9 @@ namespace time_shield {
525525 sec_value += detail::floor_div (ms_value, static_cast <int64_t >(MS_PER_SEC));
526526 ms_value = detail::floor_mod (ms_value, static_cast <int64_t >(MS_PER_SEC));
527527 if ((sec_value > 0 &&
528- sec_value > (std::numeric_limits<int64_t >::max () - ms_value) / MS_PER_SEC) ||
528+ sec_value > (( std::numeric_limits<int64_t >::max) () - ms_value) / MS_PER_SEC) ||
529529 (sec_value < 0 &&
530- sec_value < std::numeric_limits<int64_t >::min () / MS_PER_SEC)) {
530+ sec_value < ( std::numeric_limits<int64_t >::min) () / MS_PER_SEC)) {
531531 return ERROR_TIMESTAMP;
532532 }
533533 return static_cast <ts_ms_t >(sec_value * MS_PER_SEC + ms_value);
@@ -551,9 +551,9 @@ namespace time_shield {
551551 sec_value += detail::floor_div (ms_value, static_cast <int64_t >(MS_PER_SEC));
552552 ms_value = detail::floor_mod (ms_value, static_cast <int64_t >(MS_PER_SEC));
553553 if ((sec_value > 0 &&
554- sec_value > (std::numeric_limits<int64_t >::max () - ms_value) / MS_PER_SEC) ||
554+ sec_value > (( std::numeric_limits<int64_t >::max) () - ms_value) / MS_PER_SEC) ||
555555 (sec_value < 0 &&
556- sec_value < std::numeric_limits<int64_t >::min () / MS_PER_SEC)) {
556+ sec_value < ( std::numeric_limits<int64_t >::min) () / MS_PER_SEC)) {
557557 return ERROR_TIMESTAMP;
558558 }
559559 return static_cast <ts_ms_t >(sec_value * MS_PER_SEC + ms_value);
You can’t perform that action at this time.
0 commit comments