[all-commits] [llvm/llvm-project] 91eb99: [libc][NFC] fix sprintf test on 32 bit systems
michaelrj-google via All-commits
all-commits at lists.llvm.org
Wed Jul 26 11:34:08 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 91eb99b8417398f0edc7a6124b0606c13d1b2245
https://github.com/llvm/llvm-project/commit/91eb99b8417398f0edc7a6124b0606c13d1b2245
Author: Michael Jones <michaelrj at google.com>
Date: 2023-07-26 (Wed, 26 Jul 2023)
Changed paths:
M libc/test/src/stdio/sprintf_test.cpp
Log Message:
-----------
[libc][NFC] fix sprintf test on 32 bit systems
The expected number for the max ptrdiff value was expected to be exactly
4294967296 (2**32) for 32 bit systems, when it should be
4294967295 (2**32 - 1). This also adds a second test to check for this
case on non-32 bit systems.
Reviewed By: lntue, mikhail.ramalho
Differential Revision: https://reviews.llvm.org/D156257
More information about the All-commits
mailing list