Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: 3.0.6-pre-3: minor tweaks after last patch
- X-seq: zsh-workers 6439
- From: Wayne Davison <wayne@xxxxxxxxx>
- To: "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATCH: 3.0.6-pre-3: minor tweaks after last patch
- Date: Wed, 02 Jun 1999 18:57:16 -0700
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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---
Messages sorted by:
Reverse Date,
Date,
Thread,
Author