erocarrera / pefile

pefile is a Python module to read and work with PE (Portable Executable) files
MIT License
1.83k stars 516 forks source link

Update comment on MAX_STRING_LENGTH to match code #391

Closed mikewiacek closed 6 months ago

erocarrera commented 6 months ago

Hi Mike,

2**20 = 1,048,576 0x100000 = 1,048,576

if I am not mistaken. I guess you read it as a shift? if so it should be 1<<20, that'd also be the same.

mikewiacek commented 6 months ago

eeek yeah, lol.

I read it as 1<<20 because I was editing code in Go that was doing 1<<20, and totally mixed up the operator.