zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayne@clari.net>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: PATCH: 3.0.6-pre-3: minor tweaks after last patch
Date: Wed, 02 Jun 1999 18:57:16 -0700	[thread overview]
Message-ID: <199906030157.SAA09589@bebop.clari.net> (raw)

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---


                 reply	other threads:[~1999-06-03  1:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199906030157.SAA09589@bebop.clari.net \
    --to=wayne@clari.net \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).