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

Unified Diff: src/base/ieee754.cc

Issue 2299763002: Fix compilation error on gcc 4.8.5 on s390x (Closed)
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/ieee754.cc
diff --git a/src/base/ieee754.cc b/src/base/ieee754.cc
index 94bc7d350fe8cf8dffedd23b8fac70065b497913..d0faeeea0063ed701bb8853a35157be4203d066a 100644
--- a/src/base/ieee754.cc
+++ b/src/base/ieee754.cc
@@ -609,7 +609,7 @@ recompute:
j = 0;
for (i = jz - 1; i >= jk; i--) j |= iq[i];
if (j == 0) { /* need recomputation */
- for (k = 1; iq[jk - k] == 0; k++) {
+ for (k = 1; jk >= k && iq[jk - k] == 0; k++) {
/* k = no. of terms needed */
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698