Skip to content

Commit 0cca127

Browse files
authored
Merge pull request #3726 from martin-frbg/fixc99
Fix C99-style declaration in converted LAPACK code
2 parents be82449 + 704a024 commit 0cca127

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lapack-netlib/SRC/iparam2stage.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -717,11 +717,12 @@ integer iparam2stage_(integer *ispec, char *name__, char *opts, integer *ni,
717717
ret_val = -1;
718718

719719
// s_copy(subnam, name__, (ftnlen)12, name_len);
720-
strncpy(subnam,name__,13);
721-
subnam[13]='\0';
722-
for (int i=0;i<13;i++) subnam[i]=toupper(subnam[i]);
723-
//fprintf(stderr,"iparam2stage, name__ gelesen #%s#\n",name__);
724-
//fprintf(stderr,"iparam2stage, subnam gelesen #%s#\n",subnam);
720+
strncpy(subnam,name__,13);
721+
subnam[13]='\0';
722+
{
723+
int i;
724+
for (i=0;i<13;i++) subnam[i]=toupper(subnam[i]);
725+
}
725726

726727
#if 0
727728

0 commit comments

Comments
 (0)