Co-authored-by: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
This commit is contained in:
Dion Dokter 2024-07-17 01:20:56 +02:00 committed by GitHub
parent c4391b326e
commit 33f1d9d554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,7 +250,7 @@ pub fn dec2flt<F: RawFloat>(s: &str) -> Result<F, ParseFloatError> {
None => return Err(pfe_invalid()),
};
num.negative = negative;
if cfg!(not(feature = "optimize_for_size")) {
if !cfg!(feature = "optimize_for_size") {
if let Some(value) = num.try_fast_path::<F>() {
return Ok(value);
}