Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(833)

Unified Diff: nss/lib/util/utilpars.c

Issue 70673004: Update to NSS 3.15.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Update to NSS 3.15.3 Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/lib/util/utilpars.c
===================================================================
--- nss/lib/util/utilpars.c (revision 233722)
+++ nss/lib/util/utilpars.c (working copy)
@@ -677,7 +677,7 @@
int i,j;
for (i=0; i < sizeof(defaultFlags)*8; i++) {
- if (defaultFlags & (1<<i)) {
+ if (defaultFlags & (1UL <<i)) {
char *string = NULL;
for (j=0; j < nssutil_argSlotFlagTableSize; j++) {
@@ -889,12 +889,12 @@
int i;
for (i=0; i < sizeof(ssl0)*8; i++) {
- if (ssl0 & (1<<i)) {
+ if (ssl0 & (1UL <<i)) {
char *string;
- if ((1<<i) == SECMOD_FORTEZZA_FLAG) {
+ if ((1UL <<i) == SECMOD_FORTEZZA_FLAG) {
string = PR_smprintf("%s",NSSUTIL_ARG_FORTEZZA_FLAG);
} else {
- string = PR_smprintf("0h0x%08x",1<<i);
+ string = PR_smprintf("0h0x%08lx", 1UL <<i);
}
if (cipher) {
char *tmp;
@@ -908,14 +908,14 @@
}
}
for (i=0; i < sizeof(ssl0)*8; i++) {
- if (ssl1 & (1<<i)) {
+ if (ssl1 & (1UL <<i)) {
if (cipher) {
char *tmp;
- tmp = PR_smprintf("%s,0l0x%08x",cipher,1<<i);
+ tmp = PR_smprintf("%s,0l0x%08lx",cipher, 1UL <<i);
PR_smprintf_free(cipher);
cipher = tmp;
} else {
- cipher = PR_smprintf("0l0x%08x",1<<i);
+ cipher = PR_smprintf("0l0x%08lx", 1UL <<i);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698