Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: base/third_party/dmg_fp/float_precision_crash.patch

Issue 2364123002: Merge latest changes from http://www.netlib.org/fp/dtoa.c into dtoa.cc (Closed)
Patch Set: address scottmg's comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 diff --git a/base/third_party/dmg_fp/dtoa.cc b/base/third_party/dmg_fp/dtoa.cc
2 index 3f7e794..3312fa4 100644
3 --- dtoa.cc
4 +++ dtoa.cc
5 @@ -3891,7 +3891,7 @@ dtoa
6 goto no_digits;
7 goto one_digit;
8 }
9 - for(i = 1;; i++, dval(&u) *= 10.) {
10 + for(i = 1; i <= k + 1; i++, dval(&u) *= 10.) {
11 L = (Long)(dval(&u) / ds);
12 dval(&u) -= L*ds;
13 #ifdef Check_FLT_ROUNDS
OLDNEW
« base/third_party/dmg_fp/dtoa.cc ('K') | « base/third_party/dmg_fp/dtoa.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698