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

Unified Diff: src/conversions.h

Issue 10821088: Force signed zero double. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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/conversions.h
diff --git a/src/conversions.h b/src/conversions.h
index e12cf5cdfc785b5b3b96e051a3b2799a7497bfed..0180aa6794ade40f6bb491d9abb9f1974dc9ce5b 100644
--- a/src/conversions.h
+++ b/src/conversions.h
@@ -53,7 +53,7 @@ inline bool isDigit(int x, int radix) {
inline double SignedZero(bool negative) {
- return negative ? -0.0 : 0.0;
+ return negative ? BitCast<double, uint64_t>(Double::kSignMask) : 0.0;
}
« 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