in reply to Int ->Bytes -> Int

Cool. Is there a line missing bytes_to_short subroutine? Where is @bytes initialized?