projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edccb1f
)
* luci/libs: fixed big endian in Hex() constructor
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 8 Aug 2008 01:04:52 +0000
(
01:04
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 8 Aug 2008 01:04:52 +0000
(
01:04
+0000)
libs/core/luasrc/ip.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/ip.lua
b/libs/core/luasrc/ip.lua
index 15730dbacc414bb9b09e8168bcceaab6e41da303..ad32e27c6e31ec849466f52389c5ca4845cf9f6b 100644
(file)
--- a/
libs/core/luasrc/ip.lua
+++ b/
libs/core/luasrc/ip.lua
@@
-211,6
+211,8
@@
function Hex( hex, prefix, family, swap )
if swap and LITTLE_ENDIAN then
for i = #hex, 1, -2 do tmp = tmp .. hex:sub( i - 1, i ) end
+ else
+ tmp = tmp .. hex
end
hex = tmp