3 ms·
0072 = 0072 + 2 * (filenameLength // 2) That's wrong. filenameLength is 2, so that equation would come out to 74, not 72.
by Thorrez 6y ago
0072 = 0072 + 2 * (filenameLength // 2)
That's wrong. filenameLength is 2, so that equation would come out to 74, not 72.
- akully 6y agooh did I make a mistake here? good catch. I'm gonna look back at my original notes for this. I think 0072 + 2 * ( (filenameLength-1) / 2) should work but I'll test
- akully 6y agookay, so the correct formula is: = 0070 + 2 * (filenameLen // 2) where // is floor division. Site is updated too :)