storage_scheme) != 5)
return MM_PREMATURE_EOF;
- for (p = mtx; *p != '\0'; *p = tolower(*p), p++); /* convert to lower case */
- for (p = crd; *p != '\0'; *p = tolower(*p), p++);
- for (p = data_type; *p != '\0'; *p = tolower(*p), p++);
- for (p = storage_scheme; *p != '\0'; *p = tolower(*p), p++);
+ // convert to lower case
+ for (p = mtx; *p != '\0'; *p = (char)tolower((int)*p), p++);
+ for (p = crd; *p != '\0'; *p = (char)tolower((int)*p), p++);
+ for (p = data_type; *p != '\0'; *p = (char)tolower((int)*p), p++);
+ for (p = storage_scheme; *p != '\0'; *p = (char)tolower((int)*p), p++);
/* check for banner */
if (strncmp(banner, MatrixMarketBanner, strlen(MatrixMarketBanner)) !=