Mercurial > hg > octave-lojdl > gnulib-hg
changeset 7604:63dde3c4bef5
ANSI C compliance.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 06 Nov 2006 13:03:51 +0000 |
parents | 23f14c284219 |
children | ae17dea0254d |
files | ChangeLog lib/gl_array_list.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-11-05 Bruno Haible <bruno@clisp.org> + + * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement + ANSI C compliant. + 2006-11-03 Bruno Haible <bruno@clisp.org> Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
--- a/lib/gl_array_list.c +++ b/lib/gl_array_list.c @@ -439,8 +439,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) {