mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Do not declare variables in a 'for' statement because the scope
of such variables is compiler-dependent. (approved by kipp@netscape.com)
This commit is contained in:
parent
ea6aa09a4e
commit
dc2cd39331
@ -36,7 +36,8 @@ int main(int argc, char** argv)
|
||||
nsIAtom** ids = new nsIAtom*[60000];
|
||||
nsAutoString s1, s2;
|
||||
PRTime start = PR_Now();
|
||||
for (PRInt32 i = 0; i < 60000; i++) {
|
||||
PRInt32 i;
|
||||
for (i = 0; i < 60000; i++) {
|
||||
char buf[1000];
|
||||
char* s = fgets(buf, sizeof(buf), fp);
|
||||
if (nsnull == s) {
|
||||
|
@ -36,7 +36,8 @@ int main(int argc, char** argv)
|
||||
nsIAtom** ids = new nsIAtom*[60000];
|
||||
nsAutoString s1, s2;
|
||||
PRTime start = PR_Now();
|
||||
for (PRInt32 i = 0; i < 60000; i++) {
|
||||
PRInt32 i;
|
||||
for (i = 0; i < 60000; i++) {
|
||||
char buf[1000];
|
||||
char* s = fgets(buf, sizeof(buf), fp);
|
||||
if (nsnull == s) {
|
||||
|
Loading…
Reference in New Issue
Block a user