zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: 3.0.6-pre-3: minor tweaks after last patch
@ 1999-06-03  1:57 Wayne Davison
  0 siblings, 0 replies; only message in thread
From: Wayne Davison @ 1999-06-03  1:57 UTC (permalink / raw)
  To: ZSH workers mailing list

These simple changes follow-up my just-released patch for 3.0.6-pre-3:

I failed to include a minor tweak from my history changes that made
the hasher() function use a slightly different character-casting
syntax (since I have a dim recollection that the new way avoids a
sign-extension problem on certain systems).

Also, I failed to notice that I left a trailing period on a couple
of debug error messages (the new strings now match pws-20).

..wayne..

---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
--- zsh-3.0.5/Src/hashtable.c	Wed Jun  2 18:14:21 1999
+++ ./Src/hashtable.c	Wed Jun  2 18:36:41 1999
@@ -42,7 +42,7 @@
     unsigned hashval = 0;
 
     while (*str)
-	hashval += (hashval << 5) + ((unsigned) *str++);
+	hashval += (hashval << 5) + *(unsigned char *)str++;
 
     return hashval;
 }
--- zsh-3.0.5/Src/hist.c	Wed Jun  2 18:14:22 1999
+++ ./Src/hist.c	Wed Jun  2 18:37:25 1999
@@ -834,12 +834,12 @@
     /* debugging only */
     if (hwgetword == -1 && !chwordpos) {
 	/* no words available */
-	DPUTS(1, "BUG: hwget() called with no words.");
+	DPUTS(1, "BUG: hwget() called with no words");
 	*startptr = "";
 	return;
     } 
     else if (hwgetword == -1 && chwordpos%2) {
-	DPUTS(1, "BUG: hwget() called in middle of word.");
+	DPUTS(1, "BUG: hwget() called in middle of word");
 	*startptr = "";
 	return;
     }
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-06-03  1:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-03  1:57 PATCH: 3.0.6-pre-3: minor tweaks after last patch Wayne Davison

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).