(obstack_free): Explicitly convert __obj to
authorschwab <schwab>
Mon, 29 Mar 1999 02:30:25 +0000 (02:30 +0000)
committerschwab <schwab>
Mon, 29 Mar 1999 02:30:25 +0000 (02:30 +0000)
char * to avoid C++ warning.

malloc/obstack.h

index beb548e..4d49ce0 100644 (file)
@@ -1,5 +1,5 @@
 /* obstack.h - object stack macros
-   Copyright (C) 1988,89,90,91,92,93,94,96,97,98 Free Software Foundation, Inc.
+   Copyright (C) 1988,89,90,91,92,93,94,96,97,98,99 Free Software Foundation, Inc.
 
    This file is part of the GNU C Library.  Its master source is NOT part of
    the C library, however.  The master source lives in /gd/gnu/lib.
@@ -481,7 +481,7 @@ __extension__                                                               \
 ({ struct obstack *__o = (OBSTACK);                                    \
    void *__obj = (OBJ);                                                        \
    if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit)  \
-     __o->next_free = __o->object_base = __obj;                                \
+     __o->next_free = __o->object_base = (char *)__obj;                        \
    else (obstack_free) (__o, __obj); })
 \f
 #else /* not __GNUC__ or not __STDC__ */