summaryrefslogtreecommitdiff
path: root/libgfortran/generated/cshift0_i1.c
diff options
context:
space:
mode:
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-12 19:27:49 +0000
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-12 19:27:49 +0000
commitc75dca4902ad96d90237f6ab49c368ecb1ff3e52 (patch)
tree17933ebe7d8de121ec47c896cf51dd424e7498fd /libgfortran/generated/cshift0_i1.c
parent2c91fb39d3dca3aa4300047463649d5b108d28fb (diff)
downloadgcc-c75dca4902ad96d90237f6ab49c368ecb1ff3e52.tar.gz
Cleanup memsize types
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172340 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/generated/cshift0_i1.c')
-rw-r--r--libgfortran/generated/cshift0_i1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/generated/cshift0_i1.c b/libgfortran/generated/cshift0_i1.c
index 7ed44bddb78..65173e3cc6a 100644
--- a/libgfortran/generated/cshift0_i1.c
+++ b/libgfortran/generated/cshift0_i1.c
@@ -32,7 +32,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#if defined (HAVE_GFC_INTEGER_1)
void
-cshift0_i1 (gfc_array_i1 *ret, const gfc_array_i1 *array, ssize_t shift,
+cshift0_i1 (gfc_array_i1 *ret, const gfc_array_i1 *array, ptrdiff_t shift,
int which)
{
/* r.* indicates the return array. */
@@ -97,7 +97,7 @@ cshift0_i1 (gfc_array_i1 *ret, const gfc_array_i1 *array, ssize_t shift,
rptr = ret->data;
sptr = array->data;
- shift = len == 0 ? 0 : shift % (ssize_t)len;
+ shift = len == 0 ? 0 : shift % (ptrdiff_t)len;
if (shift < 0)
shift += len;