second argument of Gestalt() is signed long, cast unsigned parameter

This commit is contained in:
Laurent Vivier
2007-03-22 16:27:34 +00:00
parent 21bec7bfa7
commit 1cab2b046b

View File

@@ -75,22 +75,22 @@ void arch_init()
/* get RAM size */ /* get RAM size */
Gestalt('ram ', &ram_size); Gestalt('ram ', (long*)&ram_size);
/* get processor type */ /* get processor type */
Gestalt(gestaltProcessorType, &cpu_type); Gestalt(gestaltProcessorType, (long*)&cpu_type);
/* check FPU */ /* check FPU */
if (Gestalt('FPUE', &fpu_type) == noErr) if (Gestalt('FPUE', (long*)&fpu_type) == noErr)
fpu_type = 0; fpu_type = 0;
else else
Gestalt(gestaltFPUType, &fpu_type); Gestalt(gestaltFPUType, (long*)&fpu_type);
/* check MMU */ /* check MMU */
Gestalt(gestaltMMUType, &mmu_type); Gestalt(gestaltMMUType, (long*)&mmu_type);
/* I'v got a 'noMMU' with my 68030, not cool... */ /* I'v got a 'noMMU' with my 68030, not cool... */
@@ -109,12 +109,12 @@ void arch_init()
/* get architecture type: powerPC or m68k */ /* get architecture type: powerPC or m68k */
if (Gestalt(gestaltSysArchitecture, &arch_type) != noErr) if (Gestalt(gestaltSysArchitecture, (long*)&arch_type) != noErr)
arch_type = gestalt68k; arch_type = gestalt68k;
/* check machine type */ /* check machine type */
Gestalt(gestaltMachineType, &machine_id); Gestalt(gestaltMachineType, (long*)&machine_id);
/* GMT bias */ /* GMT bias */