Browse Source

Fix compile error with clang casting long* to int*

teensy4-core
Joe Hermaszewski 9 years ago
parent
commit
1d45148b6b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      teensy3/Print.cpp

+ 3
- 1
teensy3/Print.cpp View File

@@ -183,7 +183,9 @@ size_t Print::printNumberDec(unsigned long n, uint8_t sign)

p = buf + (sizeof(buf));
do {
divmod10_v2(n, &n, &digit);
uint32_t div;
divmod10_v2(n, &div, &digit);
n = div;
//divmod10_asm(n, digit, t1, t2, c3333);
*--p = digit + '0';
} while (n);

Loading…
Cancel
Save