kevints/ruby — pull request #11 by andrewmains12 (2012-11-24 08:22:46+00:00)
Title: Added tests for deque and fixed negative mod bug

Explanation is mostly in the title.

The bug in question was this: mod in C with a negative number will return a negative number, which was not what I expected. I replaced naive calls to mod in the deque code with a macro that works the way I wanted (the way that Python behaves).

At this point, gc-test/simple.rb basically works, although valgrind shows some memory errors that I'm looking at now. The miniruby bootstrapping process still dies.