http icon indicating copy to clipboard operation
http copied to clipboard

Incorrect largest decimal number

Open cloutiertyler opened this issue 3 years ago • 0 comments

https://github.com/hyperium/http/blob/78e3d37563b0fe83886abffdcd8569117d45fee9/src/header/value.rs#L421|

The comment here states:

// The largest decimal number in 15 digits:
// It wold be 10.pow(15) - 1, but this is a constant
// version.
if num as u64 > 999_999_999_999_999_999 {

However, 999_999_999_999_999_999 is actually 18 digits.

cloutiertyler avatar Jul 30 '23 16:07 cloutiertyler