diff --git a/src/gmt_api.c b/src/gmt_api.c index c864ddcaec1..eebf562bbab 100644 --- a/src/gmt_api.c +++ b/src/gmt_api.c @@ -5523,7 +5523,7 @@ GMT_LOCAL struct GMT_GRID *gmtapi_import_grid (struct GMTAPI_CTRL *API, int obje G_obj->header->wesn[XLO] -= 360.0; G_obj->header->wesn[XHI] -= 360.0; } if (S_obj->wesn[XLO] < G_obj->header->wesn[XLO]) { - /* Must wrap G_obj->header.wesn so the left bound in S_obj is smaller larger than that in G_obj, otherwise i0 is negative (but it's defined as unsigned int */ + /* Must wrap G_obj->header.wesn so the left bound in S_obj is larger than that in G_obj, otherwise i0 is negative (but it's defined as unsigned int */ G_obj->header->wesn[XLO] -= 360.0; G_obj->header->wesn[XHI] -= 360.0; } } @@ -6349,7 +6349,7 @@ GMT_LOCAL struct GMT_CUBE * gmtapi_import_cube (struct GMTAPI_CTRL *API, int obj U_obj->header->wesn[XLO] -= 360.0; U_obj->header->wesn[XHI] -= 360.0; } if (S_obj->wesn[XLO] < U_obj->header->wesn[XLO]) { - /* Must wrap U_obj->header.wesn so the left bound in S_obj is smaller larger than that in U_obj, otherwise i0 is negative (but it's defined as unsigned int */ + /* Must wrap U_obj->header.wesn so the left bound in S_obj is larger than that in U_obj, otherwise i0 is negative (but it's defined as unsigned int */ U_obj->header->wesn[XLO] -= 360.0; U_obj->header->wesn[XHI] -= 360.0; } }