Skip to content

Commit

Permalink
Add performance fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsc1 committed Oct 4, 2018
1 parent 58be5e2 commit c72d84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/xo/s.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ func (s *S) Add(m z.Lit) {
//s.lock()
//defer s.unlock()
s.ensureLitCap(m)
if m == z.LitNull {
s.Trail.Back(s.endTestLevel)
if m == z.LitNull && s.Trail.Level != 0 {
s.Trail.Back(0)
}
loc, u := s.Cdb.Add(m)
if u != z.LitNull {
Expand Down

0 comments on commit c72d84f

Please sign in to comment.