X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libgfortran%2Fgenerated%2Fmatmul_i4.c;h=f214ba5ec0c8108a1e0aa600adbd8a895a84ab9f;hb=7b49b59fb52ea8e809812b003ad6d5d18861f5d4;hp=36835207df6863a285d82225e766bf283000639f;hpb=b87be38a2a8cb0b5fbc44e46a84a97ec9fc7b6bd;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libgfortran/generated/matmul_i4.c b/libgfortran/generated/matmul_i4.c index 36835207df6..f214ba5ec0c 100644 --- a/libgfortran/generated/matmul_i4.c +++ b/libgfortran/generated/matmul_i4.c @@ -1,5 +1,5 @@ /* Implementation of the MATMUL intrinsic - Copyright 2002 Free Software Foundation, Inc. + Copyright 2002, 2005 Free Software Foundation, Inc. Contributed by Paul Brook This file is part of the GNU Fortran 95 runtime library (libgfortran). @@ -92,14 +92,14 @@ matmul_i4 (gfc_array_i4 * retarray, gfc_array_i4 * a, gfc_array_i4 * b) retarray->dim[0].lbound = 0; retarray->dim[0].ubound = a->dim[0].ubound - a->dim[0].lbound; retarray->dim[0].stride = 1; - + retarray->dim[1].lbound = 0; retarray->dim[1].ubound = b->dim[1].ubound - b->dim[1].lbound; retarray->dim[1].stride = retarray->dim[0].ubound+1; } - + retarray->data - = internal_malloc_size (sizeof (GFC_INTEGER_4) * size0 (retarray)); + = internal_malloc_size (sizeof (GFC_INTEGER_4) * size0 ((array_t *) retarray)); retarray->base = 0; } @@ -157,7 +157,7 @@ matmul_i4 (gfc_array_i4 * retarray, gfc_array_i4 * a, gfc_array_i4 * b) /* bystride should never be used for 1-dimensional b. in case it is we want it to cause a segfault, rather than an incorrect result. */ - bystride = 0xDEADBEEF; + bystride = 0xDEADBEEF; ycount = 1; } else @@ -178,7 +178,7 @@ matmul_i4 (gfc_array_i4 * retarray, gfc_array_i4 * a, gfc_array_i4 * b) GFC_INTEGER_4 *abase_n; GFC_INTEGER_4 bbase_yn; - memset (dest, 0, (sizeof (GFC_INTEGER_4) * size0(retarray))); + memset (dest, 0, (sizeof (GFC_INTEGER_4) * size0((array_t *) retarray))); for (y = 0; y < ycount; y++) {