[med-svn] [aghermann] 20/31: rk1968: op_get_signal_envelope: forgot to increment loop counter, such a shame

andrei zavada hmmr-guest at alioth.debian.org
Sun Nov 10 00:34:18 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository aghermann.

commit bd5afa59537c3cfd265a90e2c8083382a002e12a
Author: Andrei Zavada <hmmr at ra>
Date:   Sat Nov 9 20:46:27 2013 +0200

    rk1968: op_get_signal_envelope: forgot to increment loop counter, such a shame
---
 upstream/src/aghermann/rk1968/rk1968.cc |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/upstream/src/aghermann/rk1968/rk1968.cc b/upstream/src/aghermann/rk1968/rk1968.cc
index f9f65ad..9467326 100644
--- a/upstream/src/aghermann/rk1968/rk1968.cc
+++ b/upstream/src/aghermann/rk1968/rk1968.cc
@@ -355,12 +355,13 @@ host_get_data( lua_State *L)
                                  sr},
                                 dh, dt);
 
-                        auto b = 0u;
                         if ( !lua_checkstack( L, raw_profile.size()) )
                                 make_error_return( "Failed to grow stack for %zu numbers", raw_profile.size());
+
+                        auto b = 0u;
                         while ( b < raw_profile.size() )
-                                lua_pushnumber( L, raw_profile[b]);
-                        return raw_profile.size();
+                                lua_pushnumber( L, raw_profile[b++]);
+                        return (int)raw_profile.size();
                 }
         }
 

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list