lib/gogyou/mixin.rb in gogyou-0.2.1 vs lib/gogyou/mixin.rb in gogyou-0.2.2

- old
+ new

@@ -229,10 +229,10 @@ end self end - def setbinary(index, str, bytesize = str.bytesize, offset = 0) + def setbinary(index, str, offset = 0, bytesize = str.bytesize) offset = offset.to_i bytesize = bytesize.to_i size1 = str.bytesize - offset bytesize = size1 if bytesize > size1 if bytesize > 0