瀏覽代碼

Merge pull request #100 from expipiplus1/fix-casting

Fix compile error with clang casting long* to int*
main
Paul Stoffregen 9 年之前
父節點
當前提交
2765de0801
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      teensy3/Print.cpp

+ 3
- 1
teensy3/Print.cpp 查看文件

@@ -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…
取消
儲存