Skip to content

Commit 415a38c

Browse files
author
Arnd R. Strube
committed
Fix %ld bug
1 parent d8df8af commit 415a38c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ApplicationLib/Printer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ void Printer::Print(const char* s)
4242
putchar(*p);
4343
}
4444

45-
void Printer::Print(long n)
45+
void Printer::Print(long int n)
4646
{
47-
printf("%d", n);
47+
printf("%ld", n);
4848
}
4949

5050
Printer& operator<<(Printer& p, const char* s)

0 commit comments

Comments
 (0)