File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ size_t Print::println(const Printable& x)
226
226
227
227
size_t Print::printNumber (unsigned long n, uint8_t base)
228
228
{
229
- char buf[8 * sizeof (long ) + 1 ]; // Assumes 8-bit chars plus zero byte.
229
+ char buf[8 * sizeof (n ) + 1 ]; // Assumes 8-bit chars plus zero byte.
230
230
char *str = &buf[sizeof (buf) - 1 ];
231
231
232
232
*str = ' \0 ' ;
@@ -246,7 +246,7 @@ size_t Print::printNumber(unsigned long n, uint8_t base)
246
246
247
247
size_t Print::printNumber (unsigned long long n, uint8_t base)
248
248
{
249
- char buf[8 * sizeof (long long ) + 1 ]; // Assumes 8-bit chars plus zero byte.
249
+ char buf[8 * sizeof (n ) + 1 ]; // Assumes 8-bit chars plus zero byte.
250
250
char * str = &buf[sizeof (buf) - 1 ];
251
251
252
252
*str = ' \0 ' ;
@@ -255,7 +255,7 @@ size_t Print::printNumber(unsigned long long n, uint8_t base)
255
255
if (base < 2 ) base = 10 ;
256
256
257
257
do {
258
- unsigned long m = n;
258
+ auto m = n;
259
259
n /= base;
260
260
char c = m - base * n;
261
261
You can’t perform that action at this time.
0 commit comments