]> git.openstreetmap.org Git - rails.git/commitdiff
The read flag is a boolean
authorTom Hughes <tom@compton.nu>
Fri, 8 Oct 2010 14:25:10 +0000 (15:25 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 8 Oct 2010 14:25:10 +0000 (15:25 +0100)
lib/gpx.rb

index 76f0af19a83110c7a2d50ef3073683bf9dc61d66..2041ce7c010068a07dec5ec0d03fbf0b9077ceff 100644 (file)
@@ -23,7 +23,7 @@ module GPX
 
       point = nil
 
-      while reader.read > 0
+      while reader.read
         if reader.node_type == XML::Reader::TYPE_ELEMENT
           if reader.name == "trkpt"
             point = TrkPt.new(@tracksegs, reader["lat"].to_f, reader["lon"].to_f)