]> git.sur5r.net Git - cc65/commitdiff
Fixed a bug
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 14 Oct 2004 16:24:25 +0000 (16:24 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 14 Oct 2004 16:24:25 +0000 (16:24 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3243 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/co65/o65.c

index 3ab50c132fab35dd2ef3ef506f12165ed335fb31..a30b18d00f9989406d6f82e31b6d5f8e81b0ffdf 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2002-2003 Ullrich von Bassewitz                                       */
+/* (C) 2002-2004 Ullrich von Bassewitz                                       */
 /*               Römerstrasse 52                                             */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
@@ -88,8 +88,8 @@ static unsigned long ReadO65Size (FILE* F, const O65Header* H)
 {
     unsigned long Size = 0;     /* Initialize to avoid warnings */
     switch (H->mode & O65_SIZE_MASK) {
-        case O65_SIZE_32BIT:    Size = Read32 (F);
-        case O65_SIZE_16BIT:    Size = Read16 (F);
+        case O65_SIZE_32BIT:    Size = Read32 (F);      break;
+        case O65_SIZE_16BIT:    Size = Read16 (F);      break;
         default:                Internal ("Invalid size field value in o65 header");
     }
     return Size;