It appears the original author of that file assumed that 'word' would
be a byte array like the first argument. I ran into this same problem
a few weeks ago when I was writing a postgres backend but I decided a
better fix for that would be to create what is now 'src/lib/
struct.slate'. src/lib/stream.slate has a
#next:putInteger:&littleEndian: function.
I think the best way to fix this would be to add types to the 'word'
argument. E.g.
a@(ByteArray traits) littleEndianInt32At: offset put: word@(ByteArray
traits) [originalImplementation].
a@(ByteArray traits) littleEndianInt32At: offset put: word@(Integer
traits) [newImplementation].
I will fix this and commit a change in the next hour or so.