Permalink
Browse files

fix compatibility with new compiler constrainst

  • Loading branch information...
benoist committed Apr 13, 2016
1 parent 95d4fb2 commit 51d379a9f3057b5583470c8916da6853348b4288
Showing with 5 additions and 2 deletions.
  1. +1 −1 src/message_pack/lexer.cr
  2. +3 −0 src/message_pack/token.cr
  3. +1 −1 src/message_pack/unpack_exception.cr
@@ -14,7 +14,7 @@ class MessagePack::Lexer
@io = io
@token = Token.new
@byte_number = 0
@current_byte = 0
@current_byte = 0_u8
@eof = false
end
@@ -12,6 +12,9 @@ class MessagePack::Token
property :used
@size : Int64
@int_value : Int::Signed
@uint_value : Int::Unsigned
@float_value : Float32 | Float64
def initialize
@type = :EOF
@@ -1,7 +1,7 @@
# Raised on invalid MessagePack strings.
class MessagePack::UnpackException < Exception
# The line number where the invalid MessagePack was detected.
getter byte_number
getter byte_number : Int32
# Creates a ParseException with the given message and byte number.
def initialize(message, @byte_number)

2 comments on commit 51d379a

@asterite

This comment has been minimized.

Show comment
Hide comment
@asterite

asterite Apr 14, 2016

Contributor

@benoist Wow. Only those changes were needed to upgrade to the new version?

Contributor

asterite replied Apr 14, 2016

@benoist Wow. Only those changes were needed to upgrade to the new version?

@benoist

This comment has been minimized.

Show comment
Hide comment
@benoist

benoist Apr 14, 2016

Collaborator

Yes that was it! :-)

Collaborator

benoist replied Apr 14, 2016

Yes that was it! :-)

Please sign in to comment.