lclevy / ADFlib

A free, portable and open implementation of the Amiga filesystem
GNU General Public License v2.0
85 stars 30 forks source link

Fix for calculating bootblock sum on 64-bit system #4

Closed emoon closed 9 years ago

emoon commented 9 years ago

The issue that the code uses ULONG_MAX which on a 64-bit system is a 64-bit value which makes the code to calculate an invalid checksum for the bootblock so the floppy disk will not boot correctly.

More info can be found about this in this issue https://github.com/lclevy/ADFlib/issues/3