fix diff using unsigned and properly wrap fread