Skip to content

Commit

Permalink
Fixed hash contains issue
Browse files Browse the repository at this point in the history
  • Loading branch information
heatonresearch committed Oct 14, 2012
1 parent 9c10c1f commit 37837a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion encog-cmd/encog-cmd.vcxproj.user
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LocalDebuggerCommandArguments>train d:\test\iris.eg d:\test\iris.egb /train:nm</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>csv2egb iris.csv iris.egb /input:4 /ideal:2</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion encog-core/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void *EncogHashGet(ENCOG_HASH *hashTable, char *key, void *defaultValue)

int EncogHashContains(ENCOG_HASH *hashTable, char *key)
{
return EncogHashGet(hashTable, key, NULL)==NULL;
return EncogHashGet(hashTable, key, NULL)!=NULL;
}

void EncogHashDump(ENCOG_HASH *hashTable)
Expand Down

0 comments on commit 37837a8

Please sign in to comment.