[Quipu-dev] quipu/quipu: Fix optimization of constants in 'do' forms

Back to archive index

scmno****@osdn***** scmno****@osdn*****
Fri Jun 22 09:11:50 JST 2018


changeset f98d4eb31697 in quipu/quipu
details: http://hg.osdn.jp/view/quipu/quipu?cmd=changeset;node=f98d4eb31697
user: Agustina Arzille <avarz****@riseu*****>
date: Fri Jun 22 00:11:38 2018 +0000
description: Fix optimization of constants in 'do' forms

diffstat:

 compiler.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5f55cf594b99 -r f98d4eb31697 compiler.cpp
--- a/compiler.cpp	Thu Jun 21 19:41:25 2018 -0300
+++ b/compiler.cpp	Fri Jun 22 00:11:38 2018 +0000
@@ -355,7 +355,7 @@
           int ix = this->last_idx ();
           if (ix >= 0 && (cv[ix] == OPX_(LOADT) || cv[ix] == OPX_(LOADNIL)))
             {
-              cv.erase (cv.begin () + ix, cv.end ());
+              cv.erase (cv.begin () + ix);
               return;
             }
         }




More information about the Quipu-dev mailing list
Back to archive index