Fix FindInputFormat.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5577 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-03-05 19:28:22 +00:00
parent 3cef75b26c
commit 15a8a51aa2
2 changed files with 19 additions and 4 deletions

View File

@@ -118,7 +118,7 @@ static void OptRead (const char* Opt, const char* Arg)
const char* Format = GetAttrVal (C, "format");
if (Format != 0) {
IF = FindInputFormat (Format);
if (IF <= 0) {
if (IF < 0) {
Error ("Unknown input format `%s'", Format);
}
}