Added parentheses around a type cast. Fix provided by Kipp Hickmann OJI_19980423_BASE
authorwtc
Wed, 22 Apr 1998 22:36:47 +0000
changeset 59 fed47ae0f44b1d877a4acbc940ff6c53d7a42078
parent 58 5710bbbaab5887354a6d79ac1aa95c3995489e69
child 60 8f025a4599f649a9529f88df5d55d70fa3dab4e4
child 63 c129187a504ccf9d172c236c1f7b865f608f089e
push idunknown
push userunknown
push dateunknown
Added parentheses around a type cast. Fix provided by Kipp Hickmann <kipp@netscape.com>.
pr/src/io/prprf.c
--- a/pr/src/io/prprf.c
+++ b/pr/src/io/prprf.c
@@ -246,17 +246,17 @@ static int cvt_l(SprintfState *ss, long 
     ** stop when the number is zero.
     */
     cvt = cvtbuf + sizeof(cvtbuf);
     digits = 0;
     while (num) {
 	int digit = (((unsigned long)num) % radix) & 0xF;
 	*--cvt = hexp[digit];
 	digits++;
-	num = (long)((unsigned long)num) / radix;
+	num = (long)(((unsigned long)num) / radix);
     }
     if (digits == 0) {
 	*--cvt = '0';
 	digits++;
     }
 
     /*
     ** Now that we have the number converted without its sign, deal with