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

Unified Diff: src/conversions.cc

Issue 501323002: Replace our homegrown ARRAY_SIZE() with Chrome's arraysize(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
Index: src/conversions.cc
diff --git a/src/conversions.cc b/src/conversions.cc
index 4b41d5e6a8dda6138e71bfa4919412beec048578..69272b5aff4624de368a529a15bba6b7f2be2ddc 100644
--- a/src/conversions.cc
+++ b/src/conversions.cc
@@ -211,7 +211,7 @@ char* DoubleToFixedCString(double value, int f) {
// use the non-fixed conversion routine.
if (abs_value >= kFirstNonFixed) {
char arr[100];
- Vector<char> buffer(arr, ARRAY_SIZE(arr));
+ Vector<char> buffer(arr, arraysize(arr));
return StrDup(DoubleToCString(value, buffer));
}

Powered by Google App Engine
This is Rietveld 408576698