ros / roscpp_core

ros distribution sandbox
89 stars 116 forks source link

ros::TimeBase: undefined behaviour for large doubles #105

Closed cwecht closed 1 year ago

cwecht commented 5 years ago

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).

dirk-thomas commented 4 years ago

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

peci1 commented 2 years ago

Fixed by #132.