{
int8 ni = i;
- Assert(buf->len + sizeof(int8) <= buf->maxlen);
+ Assert(buf->len + (int) sizeof(int8) <= buf->maxlen);
memcpy((char *pg_restrict) (buf->data + buf->len), &ni, sizeof(int8));
buf->len += sizeof(int8);
}
{
int16 ni = pg_hton16(i);
- Assert(buf->len + sizeof(int16) <= buf->maxlen);
+ Assert(buf->len + (int) sizeof(int16) <= buf->maxlen);
memcpy((char *pg_restrict) (buf->data + buf->len), &ni, sizeof(int16));
buf->len += sizeof(int16);
}
{
int32 ni = pg_hton32(i);
- Assert(buf->len + sizeof(int32) <= buf->maxlen);
+ Assert(buf->len + (int) sizeof(int32) <= buf->maxlen);
memcpy((char *pg_restrict) (buf->data + buf->len), &ni, sizeof(int32));
buf->len += sizeof(int32);
}
{
int64 ni = pg_hton64(i);
- Assert(buf->len + sizeof(int64) <= buf->maxlen);
+ Assert(buf->len + (int) sizeof(int64) <= buf->maxlen);
memcpy((char *pg_restrict) (buf->data + buf->len), &ni, sizeof(int64));
buf->len += sizeof(int64);
}