From: Kern Sibbald Date: Sun, 29 Jun 2008 13:50:47 +0000 (+0000) Subject: Tweak for *stupid* compiler warning X-Git-Tag: Release-3.0.0~1212 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c60996fed31f83e967a21d6087d77e0a16b1a92a;p=bacula%2Fbacula Tweak for *stupid* compiler warning git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7257 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/base64.c b/bacula/src/lib/base64.c index 0f69ca7e2c..587552a1c7 100644 --- a/bacula/src/lib/base64.c +++ b/bacula/src/lib/base64.c @@ -177,7 +177,7 @@ bin_to_base64(char *buf, int buflen, char *bin, int binlen, int compatible) 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]; }