Revision: 24428
Author:   [email protected]
Date:     Tue Oct  7 09:04:39 2014 UTC
Log:      Fixed compilation with older clang versions.

[email protected]

Review URL: https://codereview.chromium.org/638523002
https://code.google.com/p/v8/source/detail?r=24428

Modified:
 /branches/bleeding_edge/src/base/division-by-constant.cc

=======================================
--- /branches/bleeding_edge/src/base/division-by-constant.cc Fri Sep 5 11:48:47 2014 UTC +++ /branches/bleeding_edge/src/base/division-by-constant.cc Tue Oct 7 09:04:39 2014 UTC
@@ -52,7 +52,7 @@
     delta = ad - r2;
   } while (q1 < delta || (q1 == delta && r1 == 0));
   T mul = q2 + 1;
-  return {neg ? (0 - mul) : mul, p - bits, false};
+ return MagicNumbersForDivision<T>(neg ? (0 - mul) : mul, p - bits, false);
 }


@@ -93,7 +93,7 @@
     }
     delta = d - 1 - r2;
   } while (p < bits * 2 && (q1 < delta || (q1 == delta && r1 == 0)));
-  return {q2 + 1, p - bits, a};
+  return MagicNumbersForDivision<T>(q2 + 1, p - bits, a);
 }


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to