summaryrefslogtreecommitdiff
path: root/src/factor.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-08-22 12:07:11 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-08-22 12:07:38 -0700
commit1505b379af16deab5b301b2f07f1d659ce2137cb (patch)
tree1440f36a221c904d2db821325cc07ae2fe9ecbbb /src/factor.c
parent00d0c41d857a1c74169e43d1fba761cdd5279dba (diff)
downloadcoreutils-1505b379af16deab5b301b2f07f1d659ce2137cb.tar.xz
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.
Diffstat (limited to 'src/factor.c')
-rw-r--r--src/factor.c6
1 files changed, 3 insertions, 3 deletions
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. */