summaryrefslogtreecommitdiff
path: root/libgfortran/generated/iparity_i4.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/generated/iparity_i4.c')
-rw-r--r--libgfortran/generated/iparity_i4.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libgfortran/generated/iparity_i4.c b/libgfortran/generated/iparity_i4.c
index a7f76c8268d..242f6c73d43 100644
--- a/libgfortran/generated/iparity_i4.c
+++ b/libgfortran/generated/iparity_i4.c
@@ -323,18 +323,13 @@ miparity_i4 (gfc_array_i4 * const restrict retarray,
{
result = 0;
- if (len <= 0)
- *dest = 0;
- else
+ for (n = 0; n < len; n++, src += delta, msrc += mdelta)
{
- for (n = 0; n < len; n++, src += delta, msrc += mdelta)
- {
if (*msrc)
result ^= *src;
- }
- *dest = result;
}
+ *dest = result;
}
/* Advance to the next element. */
count[0]++;