• Matthew Dempsky's avatar
    cmd/compile/internal/syntax: fix source buffer refilling · e06a64a4
    Matthew Dempsky authored
    The previous code seems to have an off-by-1 in it somewhere, the
    consequence being that we didn't properly preserve all of the old
    buffer contents that we intended to.
    
    After spending a while looking at the existing window-shifting logic,
    I wasn't able to understand exactly how it was supposed to work or
    where the issue was, so I rewrote it to be (at least IMO) more
    obviously correct.
    
    Fixes #21938.
    
    Change-Id: I1ed7bbc1e1751a52ab5f7cf0411ae289586dc345
    Reviewed-on: https://go-review.googlesource.com/64830
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
    e06a64a4
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...