mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00
Bug 557380: Add missing arg to printf in TestUnicodeArguments.cpp, to fix build warning. r=smontagu
This commit is contained in:
parent
92bcc51cc0
commit
8dbd0f9902
@ -43,9 +43,9 @@ int wmain(int argc, _TCHAR* argv[]) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#else
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
@ -66,12 +66,12 @@ int main(int argc, char* argv[]) {
|
||||
return -1;
|
||||
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
printf("argv[%d] = %s; expected = %s\n", argv[i], expected_utf8[i - 1]);
|
||||
printf("argv[%d] = %s; expected = %s\n", i, argv[i], expected_utf8[i - 1]);
|
||||
if (strcmp(expected_utf8[i - 1], argv[i])) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user