Skip to content

Commit 27affd6

Browse files
committed
use raw expr instead of 0x40 hexdecimal
1 parent e1e9b43 commit 27affd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/COFF/DriverUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void LinkerDriver::parseDosStub(StringRef path) {
254254
// MS link.exe compatibility:
255255
// 1. stub must greater than or equal to 64 bytes
256256
// 2. stub must start with a valid dos signature 'MZ'
257-
if (bufferSize < 0x40)
257+
if (bufferSize < 64)
258258
Err(ctx) << "/stub: stub must be greater than or equal to 64 bytes: "
259259
<< path;
260260
if (bufferStart[0] != 'M' || bufferStart[1] != 'Z')

0 commit comments

Comments
 (0)