Permalink
Browse files

fix unpack 8 and 16 bit

  • Loading branch information...
1 parent 2968c10 commit 38e26d7c6d1ff865f0a0afe0a6b6135cbbcccdc5 @funny-falcon funny-falcon committed Aug 4, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/tarantool/util.rb
  2. +1 −1 lib/tarantool/version.rb
View
@@ -28,7 +28,7 @@ module Packer
def unpack_int8!(data)
int = data.getbyte(0)
data[0, 1] = EMPTY
- data
+ int
end
def unpack_int16(data)
@@ -38,7 +38,7 @@ def unpack_int16(data)
def unpack_int16!(data)
int = data.getbyte(0) + data.getbyte(1) * 256
data[0, 2] = EMPTY
- data
+ int
end
def unpack_int32(int)
View
@@ -1,4 +1,4 @@
module Tarantool
- VERSION = "0.4.2"
+ VERSION = "0.4.2.1"
RECORD_VERSION = "0.4.1.1"
end

0 comments on commit 38e26d7

Please sign in to comment.