Skip to content

Commit c8d406d

Browse files
committed
Fix complex type to complex128
1 parent 6a21724 commit c8d406d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

marshal/marshal.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ func ReadObject(r io.Reader) (obj py.Object, err error) {
124124
if err != nil {
125125
return
126126
}
127-
var c complex64
127+
var c complex128
128128
// FIXME c, err = strconv.ParseComplex(string(buf), 64)
129129
if err != nil {
130130
return
131131
}
132132
return py.Complex(c), nil
133133
case TYPE_BINARY_COMPLEX:
134-
var c complex64
134+
var c complex128
135135
err = binary.Read(r, binary.LittleEndian, &c)
136136
if err != nil {
137137
return

0 commit comments

Comments
 (0)