Print this page
5083 avoid undefined order of operations in assignments

@@ -35,12 +35,10 @@
  * University Acknowledgment- Portions of this document are derived from
  * software developed by the University of California, Berkeley, and its
  * contributors.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * t6.c
  * 
  * width functions, sizes and fonts
  */

@@ -498,11 +496,11 @@
         int     base, wid;
         tchar i;
         int     delim, emsz, k;
         int     savhp, savapts, savapts1, savfont, savfont1, savpts, savpts1;
 
-        base = numtab[ST].val = numtab[ST].val = wid = numtab[CT].val = 0;
+        base = numtab[ST].val = wid = numtab[CT].val = 0;
         if (ismot(i = getch()))
                 return (0);
         delim = cbits(i);
         savhp = numtab[HP].val;
         numtab[HP].val = 0;