spdy icon indicating copy to clipboard operation
spdy copied to clipboard

Call the callbacks with Fixnum values

Open jonasschneider opened this issue 14 years ago • 0 comments

Just a reminder to do this someday: Currently, many of the callback arguments are read directly from BinData records and are therefore of class BinData::Bit31 or something. They behave like Fixnums, but become a problem when used as the key of a Hash, i.e.:

h = {}
h[pckt.header.stream_id] = 'foo'
pckt.header.stream_id == 1 # => true
h[1] => nil

Raw Fixnums should be used there.

jonasschneider avatar Jan 05 '12 21:01 jonasschneider