diff --git a/src/stub/scripts/bin2h.py b/src/stub/scripts/bin2h.py index 534b27ae..df9b568c 100644 --- a/src/stub/scripts/bin2h.py +++ b/src/stub/scripts/bin2h.py @@ -116,7 +116,7 @@ class DataWriter_gas(DataWriter): w(".byte ".encode()) else: w(",".encode()) - w(("%3d" % ord(data[i])).encode()) + w(("%3d" % data[i]).encode()) self.w_eol()