зеркало из https://github.com/mozilla/pjs.git
Silence a (newly introduced in) clang warning about adding an int to a string. No bug, r=trivial
This commit is contained in:
Родитель
16a94c288e
Коммит
8c435d160a
|
@ -277,7 +277,7 @@ Shape::dump(JSContext *cx, FILE *fp) const
|
||||||
if (attrs) {
|
if (attrs) {
|
||||||
int first = 1;
|
int first = 1;
|
||||||
fputs("(", fp);
|
fputs("(", fp);
|
||||||
#define DUMP_ATTR(name, display) if (attrs & JSPROP_##name) fputs(" " #display + first, fp), first = 0
|
#define DUMP_ATTR(name, display) if (attrs & JSPROP_##name) fputs(&(" " #display)[first], fp), first = 0
|
||||||
DUMP_ATTR(ENUMERATE, enumerate);
|
DUMP_ATTR(ENUMERATE, enumerate);
|
||||||
DUMP_ATTR(READONLY, readonly);
|
DUMP_ATTR(READONLY, readonly);
|
||||||
DUMP_ATTR(PERMANENT, permanent);
|
DUMP_ATTR(PERMANENT, permanent);
|
||||||
|
@ -292,7 +292,7 @@ Shape::dump(JSContext *cx, FILE *fp) const
|
||||||
if (flags) {
|
if (flags) {
|
||||||
int first = 1;
|
int first = 1;
|
||||||
fputs("(", fp);
|
fputs("(", fp);
|
||||||
#define DUMP_FLAG(name, display) if (flags & name) fputs(" " #display + first, fp), first = 0
|
#define DUMP_FLAG(name, display) if (flags & name) fputs(&(" " #display)[first], fp), first = 0
|
||||||
DUMP_FLAG(HAS_SHORTID, has_shortid);
|
DUMP_FLAG(HAS_SHORTID, has_shortid);
|
||||||
DUMP_FLAG(METHOD, method);
|
DUMP_FLAG(METHOD, method);
|
||||||
DUMP_FLAG(IN_DICTIONARY, in_dictionary);
|
DUMP_FLAG(IN_DICTIONARY, in_dictionary);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче