1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-28 19:29:53 +00:00

Fixed a bug in SP_Add.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5246 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2011-08-21 16:08:52 +00:00
parent 7fe0958b91
commit 6cdac5eb4c

View File

@ -236,7 +236,7 @@ unsigned SP_Add (StringPool* P, const StrBuf* S)
StringPoolEntry* E = HT_Find (&P->Tab, S);
/* Did we find it? */
if (E != 0) {
if (E == 0) {
/* We didn't find the entry, so create a new one */
E = NewStringPoolEntry (S, CollCount (&P->Entries));
@ -280,7 +280,7 @@ unsigned SP_GetCount (const StringPool* P)
/* Return the number of strings in the pool */
{
return CollCount (&P->Entries);
}
}