Revision: 22769
Author: [email protected]
Date: Thu Jul 31 16:02:27 2014 UTC
Log: Correct a misuse of sizeof (introduced in r22709).
BUG=
[email protected]
Review URL: https://codereview.chromium.org/436653002
http://code.google.com/p/v8/source/detail?r=22769
Modified:
/branches/bleeding_edge/src/runtime.cc
=======================================
--- /branches/bleeding_edge/src/runtime.cc Thu Jul 31 11:20:36 2014 UTC
+++ /branches/bleeding_edge/src/runtime.cc Thu Jul 31 16:02:27 2014 UTC
@@ -15591,7 +15591,8 @@
const Runtime::Function* Runtime::FunctionForEntry(Address entry) {
- for (size_t i = 0; i < sizeof(kIntrinsicFunctions); ++i) {
+ size_t length = sizeof(kIntrinsicFunctions) /
sizeof(*kIntrinsicFunctions);
+ for (size_t i = 0; i < length; ++i) {
if (entry == kIntrinsicFunctions[i].entry) {
return &(kIntrinsicFunctions[i]);
}
--
--
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.