Skip to content

Commit

Permalink
Xcode compiler warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhsponge committed Sep 19, 2018
1 parent e6baa14 commit c6361d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ObjectiveWMM/WMM/GeomagnetismLibrary.c
Original file line number Diff line number Diff line change
Expand Up @@ -1710,35 +1710,35 @@ CALLS : none
if(MagneticModel == NULL)
{
MAG_Error(2);
return FALSE;
return (MAGtype_MagneticModel *) FALSE;
}

MagneticModel->Main_Field_Coeff_G = (double *) malloc((NumTerms + 1) * sizeof ( double));

if(MagneticModel->Main_Field_Coeff_G == NULL)
{
MAG_Error(2);
return FALSE;
return (MAGtype_MagneticModel *) FALSE;
}

MagneticModel->Main_Field_Coeff_H = (double *) malloc((NumTerms + 1) * sizeof ( double));

if(MagneticModel->Main_Field_Coeff_H == NULL)
{
MAG_Error(2);
return FALSE;
return (MAGtype_MagneticModel *) FALSE;
}
MagneticModel->Secular_Var_Coeff_G = (double *) malloc((NumTerms + 1) * sizeof ( double));
if(MagneticModel->Secular_Var_Coeff_G == NULL)
{
MAG_Error(2);
return FALSE;
return (MAGtype_MagneticModel *) FALSE;
}
MagneticModel->Secular_Var_Coeff_H = (double *) malloc((NumTerms + 1) * sizeof ( double));
if(MagneticModel->Secular_Var_Coeff_H == NULL)
{
MAG_Error(2);
return FALSE;
return (MAGtype_MagneticModel *) FALSE;
}
MagneticModel->CoefficientFileEndDate = 0;
MagneticModel->EditionDate = 0;
Expand Down

0 comments on commit c6361d6

Please sign in to comment.