Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit019e01f

Browse files
committed
Skip fast path for dec2flt when optimize_for_size
1 parentc8170e6 commit019e01f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎core/src/num/dec2flt/mod.rs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,10 @@ pub fn dec2flt<F: RawFloat>(s: &str) -> Result<F, ParseFloatError> {
250250
None =>returnErr(pfe_invalid()),
251251
};
252252
num.negative = negative;
253-
ifletSome(value) = num.try_fast_path::<F>(){
254-
returnOk(value);
253+
ifcfg!(not(feature ="optimize_for_size")){
254+
ifletSome(value) = num.try_fast_path::<F>(){
255+
returnOk(value);
256+
}
255257
}
256258

257259
// If significant digits were truncated, then we can have rounding error

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp