summaryrefslogtreecommitdiffstats
path: root/libgfortran/m4/matmull.m4
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/m4/matmull.m4')
-rw-r--r--libgfortran/m4/matmull.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/m4/matmull.m4 b/libgfortran/m4/matmull.m4
index 25bdc75b955..4be37d5a86c 100644
--- a/libgfortran/m4/matmull.m4
+++ b/libgfortran/m4/matmull.m4
@@ -89,7 +89,7 @@ matmul_'rtype_code` ('rtype` * const restrict retarray,
}
retarray->base_addr
- = xmalloc (sizeof ('rtype_name`) * size0 ((array_t *) retarray));
+ = xmallocarray (size0 ((array_t *) retarray), sizeof ('rtype_name`));
retarray->offset = 0;
}
else if (unlikely (compile_options.bounds_check))
OpenPOWER on IntegriCloud