OK, it works now. However, I still get a warning:

    warning: implicit conversion shortens 64-bit value into a 32-bit 
value

The offending line is return (s - ss) - 1;  where I expect an int. How 
to make this portable?

And I'd like to contribute with suggestions and ideas. Where is the best 
place? Github, rubyforge, a mailing list?

Many thanks!


Martin

-- 
Posted via http://www.ruby-forum.com/.