diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-08-12 10:12:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-08-12 10:12:42 -0300 |
commit | f185c0132e09a5e0a32782c674de75b510f887d8 (patch) | |
tree | eb21eb59a9cf170aa78ab1a1b7e4b8dbdef8ee45 | |
parent | b77f792b23fa4fe12918659d61961b2a50d151d0 (diff) | |
download | lua-f185c0132e09a5e0a32782c674de75b510f887d8.tar.gz lua-f185c0132e09a5e0a32782c674de75b510f887d8.tar.bz2 lua-f185c0132e09a5e0a32782c674de75b510f887d8.zip |
comment in code fragment
-rw-r--r-- | bugs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3680,9 +3680,9 @@ It needs an "interceptor" 'memcmp' function that continues | |||
3680 | reading memory after a difference is found.]], | 3680 | reading memory after a difference is found.]], |
3681 | patch = [[ | 3681 | patch = [[ |
3682 | 2c2 | 3682 | 2c2 |
3683 | < ** $Id: bugs,v 1.154 2017/05/22 12:55:16 roberto Exp roberto $ | 3683 | < ** $Id: bugs,v 1.155 2017/07/27 13:55:38 roberto Exp roberto $ |
3684 | --- | 3684 | --- |
3685 | > ** $Id: bugs,v 1.154 2017/05/22 12:55:16 roberto Exp roberto $ | 3685 | > ** $Id: bugs,v 1.155 2017/07/27 13:55:38 roberto Exp roberto $ |
3686 | 263c263,264 | 3686 | 263c263,264 |
3687 | < for (option = LUA_STRFTIMEOPTIONS; *option != '\0'; option += oplen) { | 3687 | < for (option = LUA_STRFTIMEOPTIONS; *option != '\0'; option += oplen) { |
3688 | --- | 3688 | --- |
@@ -3761,7 +3761,7 @@ patch = [[ | |||
3761 | enterblock(fs, &bl, 0); /* must enter block before 'goto' */ | 3761 | enterblock(fs, &bl, 0); /* must enter block before 'goto' */ |
3762 | gotostat(ls, v.t); /* handle goto/break */ | 3762 | gotostat(ls, v.t); /* handle goto/break */ |
3763 | - skipnoopstat(ls); /* skip other no-op statements */ | 3763 | - skipnoopstat(ls); /* skip other no-op statements */ |
3764 | + while (testnext(ls, ';')) {} /* skip colons */ | 3764 | + while (testnext(ls, ';')) {} /* skip semicolons */ |
3765 | if (block_follow(ls, 0)) { /* 'goto' is the entire block? */ | 3765 | if (block_follow(ls, 0)) { /* 'goto' is the entire block? */ |
3766 | leaveblock(fs); | 3766 | leaveblock(fs); |
3767 | return; /* and that is it */ | 3767 | return; /* and that is it */ |