git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7878
91ce42f0-d328-0410-95d8-
f526ca767f89
if (ff_pkt->flags & FO_SPARSE) {
ser_declare;
bool allZeros = false;
- if (sd->msglen == rsize &&
- fileAddr+sd->msglen < (uint64_t)ff_pkt->statp.st_size ||
+ if ((sd->msglen == rsize &&
+ fileAddr+sd->msglen < (uint64_t)ff_pkt->statp.st_size) ||
((ff_pkt->type == FT_RAW || ff_pkt->type == FT_FIFO) &&
(uint64_t)ff_pkt->statp.st_size == 0)) {
allZeros = is_buf_zero(rbuf, rsize);
/* Check for sparse blocks */
if (ff_pkt->flags & FO_SPARSE) {
bool allZeros = false;
- if (n == bufsiz &&
- fileAddr+n < (uint64_t)ff_pkt->statp.st_size ||
+ if ((n == bufsiz &&
+ fileAddr+n < (uint64_t)ff_pkt->statp.st_size) ||
((ff_pkt->type == FT_RAW || ff_pkt->type == FT_FIFO) &&
(uint64_t)ff_pkt->statp.st_size == 0)) {
allZeros = is_buf_zero(buf, bufsiz);
if (rem && j < buflen) {
mask = (1 << rem) - 1;
if (compatible) {
- buf[j++] = base64_digits[(reg & mask) << 6 - rem];
+ buf[j++] = base64_digits[(reg & mask) << (6 - rem)];
} else {
buf[j++] = base64_digits[reg & mask];
}