Possible Problem with `struct.pack` Call
ynx0 opened this issue · 1 comments
ynx0 commented
In the main.py
, the code is supposed to pack 6 values (values[0..5]
). However, the format string says '<d'
, which means pack 1
double value. In normal python, running the following reproducible code segment causes an error:
Code
import struct
struct.pack('<d', -1, -1, -1, -1, -1 -1, -1)
Error Message
error: pack expected 1 items for packing (got 6)
Is this an issue or is it just a difference in struct
vs ustruct
implementations. (or is the code not up to date?)
ynx0 commented
got fixed