roscpp_core icon indicating copy to clipboard operation
roscpp_core copied to clipboard

ros::TimeBase: undefined behaviour for large doubles

Open cwecht opened this issue 6 years ago • 2 comments

TimeBase::fromSec(double) casts a double value to an int64_t value. If the double value is exceeds the int64_t range this is undefined behaviour (for reference).

cwecht avatar Mar 22 '19 11:03 cwecht

@cwecht Please consider to contribute a pull request for this.

dirk-thomas avatar Feb 03 '20 19:02 dirk-thomas

Fixed by #132.

peci1 avatar Feb 18 '22 10:02 peci1