Browse Source

Merge pull request #100 from expipiplus1/fix-casting

Fix compile error with clang casting long* to int*
teensy4-core
Paul Stoffregen 9 years ago
parent
commit
2765de0801
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      teensy3/Print.cpp

+ 3
- 1
teensy3/Print.cpp View File



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

Loading…
Cancel
Save