GNUNET_array_grow (val->path_info,
val->path_info_len,
path_info_len);
- memcpy (val->path_info, path_info,
+ memcpy (val->path_info,
+ path_info,
path_info_len * sizeof (struct GNUNET_PeerIdentity));
(void) GNUNET_CONTAINER_multihashmap_put (plugin->map,
&val->key,
if (n == 64)
mc->bits = UINT64_MAX; /* set all 64 bit */
else
- mc->bits = (1LL << n) - 1; /* set lowest 'bits' bit */
+ mc->bits = (1LLU << n) - 1; /* set lowest 'bits' bit */
if (dc->list_size >= dc->num_msgs)
discard_oldest_mc (dc);
GNUNET_CONTAINER_DLL_insert (dc->head,
}
/* copy data to 'mc' */
- if (0 != (mc->bits & (1LL << bit)))
+ if (0 != (mc->bits & (1LLU << bit)))
{
- mc->bits -= 1LL << bit;
+ mc->bits -= 1LLU << bit;
mbuf = (char *) &mc[1];
memcpy (&mbuf[bit * (dc->mtu - sizeof (struct FragmentHeader))], &fh[1],
ntohs (msg->size) - sizeof (struct FragmentHeader));
/* count number of missing fragments after the current one */
bc = 0;
for (b = bit; b < 64; b++)
- if (0 != (mc->bits & (1LL << b)))
+ if (0 != (mc->bits & (1LLU << b)))
bc++;
else
bc = 0;
* Flag for the `struct GNUNET_STATISTICS_ReplyMessage` UID only.
* Note that other messages use #GNUNET_STATISTICS_SETFLAG_PERSISTENT.
*/
-#define GNUNET_STATISTICS_PERSIST_BIT (1<<31)
+#define GNUNET_STATISTICS_PERSIST_BIT ((uint32_t) (1LLU<<31))
/**
* The value being set is an absolute change.