From 1505b379af16deab5b301b2f07f1d659ce2137cb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 22 Aug 2014 12:07:11 -0700 Subject: maint: avoid int64_t and similar types unless they're needed C11 doesn't require them, even POSIX doesn't strictly require the 64-bit versions, and it makes the code a bit clearer if they're used only when needed. * src/copy.c (write_zeros, extent_copy): * src/extent-scan.h (struct extent_info.ext_length): Use off_t, not uint64_t, for a value derived from a file offset. * src/extent-scan.h (struct extent_info.ext_flags) Prefer plain unsigned int to uint32_t where either will do. (struct extent_scan.ei_count): Use size_t, not uint32_t, for a value bounded by SIZE_MAX. * src/factor.c (MAGIC64, MAGIC63, MAGIC65): Remove unnecessary casts to uint64_t. --- src/factor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/factor.c') diff --git a/src/factor.c b/src/factor.c index 63924d545..f7beaeb94 100644 --- a/src/factor.c +++ b/src/factor.c @@ -1811,9 +1811,9 @@ isqrt2 (uintmax_t nh, uintmax_t nl) } /* MAGIC[N] has a bit i set iff i is a quadratic residue mod N. */ -#define MAGIC64 ((uint64_t) 0x0202021202030213ULL) -#define MAGIC63 ((uint64_t) 0x0402483012450293ULL) -#define MAGIC65 ((uint64_t) 0x218a019866014613ULL) +#define MAGIC64 0x0202021202030213ULL +#define MAGIC63 0x0402483012450293ULL +#define MAGIC65 0x218a019866014613ULL #define MAGIC11 0x23b /* Return the square root if the input is a square, otherwise 0. */ -- cgit v1.2.3-70-g09d2