Skip to content

Commit

Permalink
Merge commit '7cfd191fae9e366b684bfdb98d031e4e175a7770' into developm…
Browse files Browse the repository at this point in the history
…ent/WMM2015v2

* commit '7cfd191fae9e366b684bfdb98d031e4e175a7770':
  Xcode compiler warning fixes
  • Loading branch information
stephent committed Feb 4, 2019
2 parents 9de99bd + 7cfd191 commit ba96b77
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 ba96b77

Please sign in to comment.