HomePhabricator

Properly handle LONG_MIN in timedata.cpp

Description

Properly handle LONG_MIN in timedata.cpp

Summary: Because there is one more negative value possible than positive value, this code does not handle LONG_MIN properly. The obvious solution is to consider the absolute value unsigned (duh!).

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D6020

Details

Provenance
deadalnixAuthored on May 9 2020, 19:34
deadalnixPushed on May 10 2020, 18:36
Reviewer
Restricted Project
Differential Revision
D6020: Properly handle LONG_MIN in timedata.cpp
Parents
rABCe2c542d2fafa: Remove last vestige of the alert system
Branches
Unknown
Tags
Unknown