]> granicus.if.org Git - python/commitdiff
Fixed typo reported by Grzegorz Makarewicz <mak@mikroplan.com.pl>.
authorFred Drake <fdrake@acm.org>
Wed, 28 Jan 1998 14:59:48 +0000 (14:59 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 28 Jan 1998 14:59:48 +0000 (14:59 +0000)
Demo/rpc/xdr.py

index 43abcee5a41998f62c276d065099f6da6ad42337..41c970ae91cdef5862ddaa4da22bd835cb8555a0 100644 (file)
@@ -158,7 +158,7 @@ class Unpacker:
                data = self.buf[i:j]
                if len(data) < 8:
                        raise EOFError
-               return struct.unpack('8', data)[0]
+               return struct.unpack('d', data)[0]
 
        def unpack_fstring(self, n):
                if n < 0: