Skip to content

Commit fd75b40

Browse files
committed
Use .s[0] instead of .x in example_ctrsm.c
.s is more portable, and .x does not work with -std=c99 which does not have anonymous structs. Fix #307.
1 parent 1f3de2a commit fd75b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/samples/example_ctrsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ printResult(const char* str)
7171
nrows = (sizeof(result) / sizeof(FloatComplex)) / ldb;
7272
for (i = 0; i < nrows; i++) {
7373
for (j = 0; j < ldb; j++) {
74-
printf("%.5f ", result[i * ldb + j].x);
74+
printf("%.5f ", result[i * ldb + j].s[0]);
7575
}
7676
printf("\n");
7777
}

0 commit comments

Comments
 (0)