Skip to content

Commit e1c6fb6

Browse files
authored
Update main.py
1 parent 1035915 commit e1c6fb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vbaProjectCompiler/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class VbaProject:
2121

2222
uMinorVersion = 62
2323
uDllVersion = 3
24-
uByteOrder = -2
24+
uByteOrder = "<"
2525
uSectorShift = 9
2626
uMiniSectorShift = 6
2727

@@ -130,7 +130,7 @@ def header(self):
130130

131131
header += struct.pack("<h", self.uMinorVersion)
132132
header += struct.pack("<h", self.uDllVersion)
133-
header += struct.pack("<h", self.uByteOrder)
133+
header += struct.pack(self.uByteOrder + "h", -2)
134134
header += struct.pack("<h", self.uSectorShift)
135135
header += struct.pack("<h", self.uMiniSectorShift)
136136

0 commit comments

Comments
 (0)