Skip to content

Commit

Permalink
[Truffle] Zlib must always use little endian instead of native endian…
Browse files Browse the repository at this point in the history
…ess.
  • Loading branch information
Stefan Anzinger authored and eregon committed Nov 14, 2016
1 parent 06d5022 commit 82b27f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ruby/truffle/pr-zlib/lib/pr/zlib.rb
Expand Up @@ -877,15 +877,15 @@ def gzfile_reset()
end

def gzfile_get16(src)
src.unpack('S').first
src.unpack('v').first
end

def gzfile_get32(src)
src.unpack('L').first
src.unpack('V').first
end

def gzfile_set32(n)
[n].pack('L')
[n].pack('V')
end

def gzfile_make_header
Expand Down

3 comments on commit 82b27f2

@nirvdrum
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to get this upstream, too: https://github.com/djberg96/pr-zlib

@eregon
Copy link
Member

@eregon eregon commented on 82b27f2 Nov 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@djberg96
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was merged upstream, and I pushed out pr-zlib-1.0.4 this morning.

Please sign in to comment.