aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-29 15:47:05 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-29 15:48:17 +0200
commit3f39679a16551be77603fe316b571401f408f9eb (patch)
treed3be4508eeef76c085b4ffb8e2bf0234f71b6250 /plugins
parente6e1c19badac420e86797c3bc351a6b1c59c7107 (diff)
downloadhex-3f39679a16551be77603fe316b571401f408f9eb.tar.gz
hex-3f39679a16551be77603fe316b571401f408f9eb.tar.xz
hex-3f39679a16551be77603fe316b571401f408f9eb.zip
zlib.lua: fix endianity
Diffstat (limited to 'plugins')
-rw-r--r--plugins/zlib.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/zlib.lua b/plugins/zlib.lua
index 0290194..69c8734 100644
--- a/plugins/zlib.lua
+++ b/plugins/zlib.lua
@@ -18,7 +18,7 @@
-- Based on RFC 1950, this format isn't very widely used
local decode = function (c)
- c.endianity = 'be'
+ c.endianity = 'le'
local deflate_levels = { "fastest", "fast", "default", "slowest" }
local deflate
@@ -54,4 +54,3 @@ local decode = function (c)
end
hex.register { type="zlib", detect=nil, decode=decode }
-