Mercurial > hg > octave-lyh > gnulib-hg
changeset 8422:f968c473e8b7
Make pointer decrementing code ANSI C compliant.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 11 Mar 2007 22:34:33 +0000 |
parents | faaa486649e7 |
children | 5fc4383618f0 |
files | ChangeLog lib/gl_array_oset.c |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-11 Bruno Haible <bruno@clisp.org> + + * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer + decrementing code ANSI C compliant. + 2007-03-11 Bruno Haible <bruno@clisp.org> * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
--- a/lib/gl_array_oset.c +++ b/lib/gl_array_oset.c @@ -1,5 +1,5 @@ /* Ordered set data type implemented by an array. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible <bruno@clisp.org>, 2006. This program is free software; you can redistribute it and/or modify @@ -297,8 +297,8 @@ abort (); /* The last returned element was removed. */ iterator->count--; - iterator->p--; - iterator->q--; + iterator->p = (const void **) iterator->p - 1; + iterator->q = (const void **) iterator->q - 1; } if (iterator->p < iterator->q) {