diff options
Diffstat (limited to 'src/gnsrecord/gnsrecord_serialization.c')
-rw-r--r-- | src/gnsrecord/gnsrecord_serialization.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gnsrecord/gnsrecord_serialization.c b/src/gnsrecord/gnsrecord_serialization.c index a2711538c..42665e662 100644 --- a/src/gnsrecord/gnsrecord_serialization.c +++ b/src/gnsrecord/gnsrecord_serialization.c | |||
@@ -130,8 +130,7 @@ GNUNET_GNSRECORD_records_get_size (unsigned int rd_count, | |||
130 | * Efficiently round up to the next | 130 | * Efficiently round up to the next |
131 | * power of 2 for padding | 131 | * power of 2 for padding |
132 | * https://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2 | 132 | * https://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2 |
133 | */ | 133 | */ret--; |
134 | ret--; | ||
135 | ret |= ret >> 1; | 134 | ret |= ret >> 1; |
136 | ret |= ret >> 2; | 135 | ret |= ret >> 2; |
137 | ret |= ret >> 4; | 136 | ret |= ret >> 4; |