[svn:parrot] r37034 - trunk/src

rurban at svn.parrot.org rurban at svn.parrot.org
Fri Feb 27 19:12:56 UTC 2009


Author: rurban
Date: Fri Feb 27 19:12:55 2009
New Revision: 37034
URL: https://trac.parrot.org/parrot/changeset/37034

Log:
[core] fix wrong pbc version check from r26169 to match documentation. 
major and minor must match, not any of both.

Modified:
   trunk/src/packfile.c

Modified: trunk/src/packfile.c
==============================================================================
--- trunk/src/packfile.c	Fri Feb 27 14:14:28 2009	(r37033)
+++ trunk/src/packfile.c	Fri Feb 27 19:12:55 2009	(r37034)
@@ -949,7 +949,7 @@
      * tools/dev/pbc_header.pl --upd t/native_pbc/ *.pbc
      * stamps version and fingerprint in the native tests. */
     if (header->bc_major != PARROT_PBC_MAJOR
-    &&  header->bc_minor != PARROT_PBC_MINOR) {
+    ||  header->bc_minor != PARROT_PBC_MINOR) {
         Parrot_io_eprintf(NULL, "PackFile_unpack: This Parrot cannot read "
             "bytecode files with version %d.%d.\n",
             header->bc_major, header->bc_minor);


More information about the parrot-commits mailing list