diff --git a/texk/web2c/cwebdir/ctwill-w2c.ch b/texk/web2c/cwebdir/ctwill-w2c.ch index 12b5f771f2..52a199f563 100644 --- a/texk/web2c/cwebdir/ctwill-w2c.ch +++ b/texk/web2c/cwebdir/ctwill-w2c.ch @@ -1555,8 +1555,8 @@ new_meaning( name_pointer p=id_lookup(first,loc-1,normal); sixteen_bits t=title_lookup(); if (*(loc-1)=='}') - while (xisdigit(*loc))@^system dependencies@> - if (n < INT_MAX / 10) n=10*n+(*loc++)-'0'; + for (;xisdigit(*loc);loc++)@^system dependencies@> + if (n < INT_MAX / 10) n=10*n+(*loc)-'0'; if (*loc++!=' ') err_print(_("! Location in meaning should be followed by space")); else @@; diff --git a/texk/web2c/cwebdir/cweave.w b/texk/web2c/cwebdir/cweave.w index 0f20e0699c..4cd934c1e1 100644 --- a/texk/web2c/cwebdir/cweave.w +++ b/texk/web2c/cwebdir/cweave.w @@ -4241,8 +4241,8 @@ else { loc++; } else { - sec_depth=0; while (xisdigit(*loc))@^system dependencies@> - if (sec_depth < INT_MAX / 10) sec_depth = sec_depth*10 + (*loc++) -'0'; + for (sec_depth=0; xisdigit(*loc);loc++)@^system dependencies@> + if (sec_depth < INT_MAX / 10) sec_depth = sec_depth*10 + (*loc) -'0'; } while (*loc == ' ') loc++; /* remove spaces before group title */ group_found=true;