develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33810 - trunk/src/packfile

Thread Next
From:
cotto
Date:
December 11, 2008 13:15
Subject:
[svn:parrot] r33810 - trunk/src/packfile
Message ID:
20081211211505.78F23CB9AF@x12.develooper.com
Author: cotto
Date: Thu Dec 11 13:15:04 2008
New Revision: 33810

Modified:
   trunk/src/packfile/pf_items.c

Log:
[packfile] fix CID #160, since sizeof (opcode_t) is not likely to be 0


Modified: trunk/src/packfile/pf_items.c
==============================================================================
--- trunk/src/packfile/pf_items.c	(original)
+++ trunk/src/packfile/pf_items.c	Thu Dec 11 13:15:04 2008
@@ -541,8 +541,7 @@
 size_t
 PF_size_integer(void)
 {
-    const size_t s = sizeof (INTVAL) / sizeof (opcode_t);
-    return s ? s : 1;
+    return sizeof (INTVAL) / sizeof (opcode_t);
 }
 
 /*

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About