]> git.openstreetmap.org Git - rails.git/blobdiff - lib/potlatch.rb
Update polyfills
[rails.git] / lib / potlatch.rb
index 6fe0b0152a8808157e5a12f6696f7fc75f457c33..0b01daf2964bad39810e284874c9d30a950660bf 100644 (file)
@@ -24,7 +24,7 @@ module Potlatch
 
     # Return eight-byte double-precision float
     def self.getdouble(s)
-      a = s.read(8).unpack("G")        # G big-endian, E little-endian
+      a = s.read(8).unpack("G") # G big-endian, E little-endian
       a[0]
     end
 
@@ -38,6 +38,7 @@ module Potlatch
       arr = {}
       while (key = getstring(s))
         break if key == ""
+
         arr[key] = getvalue(s)
       end
       s.getbyte # skip the 9 'end of object' value