Index: src/gsub.cc |
=================================================================== |
--- src/gsub.cc (revision 99) |
+++ src/gsub.cc (working copy) |
@@ -63,9 +63,8 @@ |
ParseReverseChainingContextSingleSubstitution} |
}; |
-// TODO(bashi): Port Chromium's arraysize macro and use it instead of sizeof(). |
const ots::LookupSubtableParser kGsubLookupSubtableParser = { |
- sizeof(kGsubTypeParsers) / sizeof(kGsubTypeParsers[0]), |
+ arraysize(kGsubTypeParsers), |
GSUB_TYPE_EXTENSION_SUBSTITUTION, kGsubTypeParsers |
}; |