summaryrefslogtreecommitdiff
path: root/src/journal/fsprg.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-19 15:15:59 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-19 15:16:11 +0200
commitfc89a13992384ab8d8fb0c937b021434123bbc49 (patch)
tree6cd0136ce58b336caf800fb0406de867b3933a06 /src/journal/fsprg.c
parent84168d8068bb67dcd5468ab3b376535d81643aef (diff)
journal: validate timestamps as well
Diffstat (limited to 'src/journal/fsprg.c')
-rw-r--r--src/journal/fsprg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/fsprg.c b/src/journal/fsprg.c
index 34ce3be96b..2190b7c796 100644
--- a/src/journal/fsprg.c
+++ b/src/journal/fsprg.c
@@ -160,7 +160,7 @@ static gcry_mpi_t twopowmodphi(uint64_t m, const gcry_mpi_t p) {
gcry_mpi_sub_ui(phi, p, 1);
/* count number of used bits in m */
- for (n = 0; ((uint64_t)1 << n) <= m; n++)
+ for (n = 0; (1ULL << n) <= m; n++)
;
r = gcry_mpi_new(0);