diff --git a/src/stralloc.c b/src/stralloc.c index c03d208d010ac29656d0f444c33d673cdf70bd08..48a9de36d553b0b355bd753e15fd7d0d2be40cfc 100644 --- a/src/stralloc.c +++ b/src/stralloc.c @@ -25,7 +25,7 @@ #define HUGE HUGE_VAL #endif /*!HUGE*/ -RCSID("$Id: stralloc.c,v 1.101 2000/09/15 00:59:39 mast Exp $"); +RCSID("$Id: stralloc.c,v 1.102 2000/10/08 19:07:35 grubba Exp $"); #define BEGIN_HASH_SIZE 997 #define MAX_AVG_LINK_LENGTH 3 @@ -498,12 +498,13 @@ PMOD_EXPORT struct pike_string *debug_begin_wide_shared_string(size_t len, int s */ PMOD_EXPORT struct pike_string *low_end_shared_string(struct pike_string *s) { - ptrdiff_t len, h; + ptrdiff_t len; + size_t h; struct pike_string *s2; len = s->len; h = do_hash(s); - s2 = internal_findstring(s->str,len,s->size_shift,h); + s2 = internal_findstring(s->str, len, s->size_shift, h); #ifdef PIKE_DEBUG if(s2==s) fatal("end_shared_string called twice! (or something like that)\n"); @@ -512,7 +513,7 @@ PMOD_EXPORT struct pike_string *low_end_shared_string(struct pike_string *s) if(s2) { free((char *)s); - s=s2; + s = s2; }else{ link_pike_string(s, h); }