[macruby-changes] [4589] MacRuby/trunk/vm.cpp

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 7 19:12:43 PDT 2010


Revision: 4589
          http://trac.macosforge.org/projects/ruby/changeset/4589
Author:   lsansonetti at apple.com
Date:     2010-10-07 19:12:41 -0700 (Thu, 07 Oct 2010)
Log Message:
-----------
better algorithm to calculate line numbers in stack traces

Modified Paths:
--------------
    MacRuby/trunk/vm.cpp

Modified: MacRuby/trunk/vm.cpp
===================================================================
--- MacRuby/trunk/vm.cpp	2010-10-08 00:43:36 UTC (rev 4588)
+++ MacRuby/trunk/vm.cpp	2010-10-08 02:12:41 UTC (rev 4589)
@@ -707,7 +707,7 @@
 	    for (std::vector<RoxorFunction::Line>::iterator iter =
 		    f->lines.begin(); iter != f->lines.end(); ++iter) {
 		*ln = (*iter).line;
-		if ((*iter).address <= (uintptr_t)addr) {
+		if ((uintptr_t)addr < (*iter).address) {
 		    break;
 		}
 	    }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101007/4dc7a343/attachment-0001.html>


More information about the macruby-changes mailing list