Bug 693469 - Use mozilla::ArrayLength and mozilla::ArrayEnd in preference to JS_ARRAY_LENGTH whenever possible. r=cjones
This commit is contained in:
@@ -56,6 +56,9 @@
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mozilla/Util.h"
|
||||
|
||||
#include "jstypes.h"
|
||||
#include "jsstdint.h"
|
||||
#include "jsprf.h"
|
||||
@@ -79,6 +82,7 @@
|
||||
|
||||
#include "vm/Stack-inl.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace js;
|
||||
using namespace js::types;
|
||||
|
||||
@@ -1038,7 +1042,7 @@ date_parseString(JSLinearString *str, jsdouble *result, JSContext *cx)
|
||||
}
|
||||
if (i <= st + 1)
|
||||
goto syntax;
|
||||
for (k = JS_ARRAY_LENGTH(wtb); --k >= 0;)
|
||||
for (k = ArrayLength(wtb); --k >= 0;)
|
||||
if (date_regionMatches(wtb[k], 0, s, st, i-st, 1)) {
|
||||
int action = ttb[k];
|
||||
if (action != 0) {
|
||||
|
||||
Reference in New Issue
Block a user