@@ -210,14 +210,14 @@ module JSON
210210 % found{name} = false
211211 {% end % }
212212
213- % location = pull.location
213+ % location = pull.location_i64
214214 begin
215215 pull.read_begin_object
216216 rescue exc : ::JSON ::ParseException
217217 raise ::JSON ::SerializableError .new(exc.message, self .class.to_s, nil , *% location, exc)
218218 end
219219 until pull.kind.end_object?
220- % key_location = pull.location
220+ % key_location = pull.location_i64
221221 key = pull.read_object_key
222222 case key
223223 {% for name, value in properties % }
@@ -421,7 +421,7 @@ module JSON
421421 {% end % }
422422
423423 def self.new (pull : ::JSON ::PullParser )
424- location = pull.location
424+ location = pull.location_i64
425425
426426 discriminator_value = nil
427427
@@ -486,7 +486,7 @@ module JSON
486486 getter klass : String
487487 getter attribute : String ?
488488
489- def initialize (message : String ?, @klass : String , @attribute : String ?, line_number : Int32 , column_number : Int32 , cause)
489+ def initialize (message : String ?, @klass : String , @attribute : String ?, line_number, column_number, cause)
490490 message = String .build do |io |
491491 io << message
492492 io << " \n parsing "
@@ -497,7 +497,7 @@ module JSON
497497 end
498498 super (message, line_number, column_number, cause)
499499 if cause
500- @line_number , @column_number = cause.location
500+ @line_number , @column_number = cause.location_i64
501501 end
502502 end
503503 end
0 commit comments