diff options
author | Sam James <sam@gentoo.org> | 2025-01-13 02:27:41 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2025-01-25 05:34:05 +0000 |
commit | fc8f253d808ade5e97c93b363bd1932023e770ba (patch) | |
tree | 4f2889ad54b51428730012f47d6a63f03ba9f79c | |
parent | 8ab34497de14e35aff09b607222fe1309ef156da (diff) | |
download | glibc-fc8f253d808ade5e97c93b363bd1932023e770ba.zip glibc-fc8f253d808ade5e97c93b363bd1932023e770ba.tar.gz glibc-fc8f253d808ade5e97c93b363bd1932023e770ba.tar.bz2 |
malloc: cleanup casts in tst-calloc
Followup to c3d1dac96bdd10250aa37bb367d5ef8334a093a1. As pointed out by
Maciej W. Rozycki, the casts are obviously useless now.
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
-rw-r--r-- | malloc/tst-calloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/malloc/tst-calloc.c b/malloc/tst-calloc.c index 122b2cb..e0c1a06 100644 --- a/malloc/tst-calloc.c +++ b/malloc/tst-calloc.c @@ -106,8 +106,8 @@ null_test (void) calloc (0, 0); calloc (0, max_size); calloc (max_size, 0); - calloc (0, ~((size_t) zero_size)); - calloc (~((size_t) zero_size), 0); + calloc (0, ~zero_size); + calloc (~zero_size, 0); DIAG_POP_NEEDS_COMMENT; } |