From 2eed0b6bc3b3316a22a18cf3b72e4ec0a21047ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 8 Oct 2000 21:07:35 +0200 Subject: [PATCH] Minor change. Rev: src/stralloc.c:1.102 --- src/stralloc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/stralloc.c b/src/stralloc.c index c03d208d01..48a9de36d5 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); } -- GitLab