mirror of https://gitlab.com/rnger/amath
Fixed AROS typecasting
This commit is contained in:
parent
7b88f3119c
commit
d7b73eb2d2
|
@ -80,14 +80,14 @@ bool AmigaPreferences::Save()
|
||||||
|
|
||||||
bool AmigaPreferences::SavePrefs(const char* name)
|
bool AmigaPreferences::SavePrefs(const char* name)
|
||||||
{
|
{
|
||||||
BPTR file = Open((char*)name, MODE_NEWFILE);
|
BPTR file = Open((CONST_STRPTR)name, MODE_NEWFILE);
|
||||||
|
|
||||||
if (!file) {
|
if (!file) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *out = GetDescription();
|
char *out = GetDescription();
|
||||||
FPuts(out, file);
|
FPuts(file, (CONST_STRPTR)out);
|
||||||
Close(file);
|
Close(file);
|
||||||
return (IoErr() == NULL);
|
return (IoErr() == NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue