From 38e185d15d1173c300a3a90a3283bf79cc8b5884 Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 6 Nov 2012 20:41:02 +0000 Subject: [PATCH] Rearrange the code to avoid a warning from the Watcom compiler. git-svn-id: svn://svn.cc65.org/cc65/trunk@5922 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/sp65/lynxsprite.c | 4 ++-- src/sp65/vic2sprite.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sp65/lynxsprite.c b/src/sp65/lynxsprite.c index 6fdc9fc89..7c8bb6946 100644 --- a/src/sp65/lynxsprite.c +++ b/src/sp65/lynxsprite.c @@ -82,9 +82,9 @@ static enum Mode GetMode (const Collection* A) } else { Error ("Invalid value for attribute `mode'"); } - } else { - return smAuto; } + + return smAuto; } diff --git a/src/sp65/vic2sprite.c b/src/sp65/vic2sprite.c index 9fbe06f11..d32a9cc66 100644 --- a/src/sp65/vic2sprite.c +++ b/src/sp65/vic2sprite.c @@ -83,9 +83,9 @@ static enum Mode GetMode (const Collection* A) } else { Error ("Invalid value for attribute `mode'"); } - } else { - return smAuto; - } + } + + return smAuto; } -- 2.39.5