用llu打印 uint64,在64位OS下编译会报如下warning:
- uint64_t num=10;
- printf("uint64: %llu\n", num);
warning: format '%llu' expects type 'long long int', but argument 4 has type 'uint64_t'
修正如下:
- #include
- printf("uint64: %" PRIu64 "\n", num);
阅读(6977) | 评论(0) | 转发(0) |