[PATCH] D31856: Headers: Make the type of SIZE_MAX the same as size_t

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 20 19:02:27 PDT 2017


dexonsmith updated this revision to Diff 96078.
dexonsmith added a comment.

Here's an updated patch that uses `__SIZE_MAX__` and also handles the other pointer-like integers.

However, the first three static asserts fail, because `intptr_t` and `__INTPTR_TYPE__` are different types (same for `uintptr_t` and `__UINTPTR_TYPE__`).


https://reviews.llvm.org/D31856

Files:
  clang/lib/Headers/stdint.h
  clang/test/Headers/stdint-typeof-PTR_MIN-PTR_MAX.cpp
  clang/test/Preprocessor/stdint.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31856.96078.patch
Type: text/x-patch
Size: 4483 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170421/f3434c19/attachment-0001.bin>


More information about the cfe-commits mailing list