[svn:parrot] r36733 - trunk/src

NotFound at svn.parrot.org NotFound at svn.parrot.org
Sat Feb 14 17:26:36 UTC 2009


Author: NotFound
Date: Sat Feb 14 17:26:35 2009
New Revision: 36733
URL: https://trac.parrot.org/parrot/changeset/36733

Log:
fix: c++ need cast in int to enum conversions

Modified:
   trunk/src/pbc_disassemble.c

Modified: trunk/src/pbc_disassemble.c
==============================================================================
--- trunk/src/pbc_disassemble.c	Sat Feb 14 15:48:55 2009	(r36732)
+++ trunk/src/pbc_disassemble.c	Sat Feb 14 17:26:35 2009	(r36733)
@@ -32,7 +32,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 
-static void do_dis(Parrot_Interp, const char *, Parrot_disassemble_options);
+static void do_dis(Parrot_Interp, const char *, int);
 
 /*
 
@@ -138,7 +138,7 @@
 
 /*
 
-=item C<static void do_dis(PARROT_INTERP, outfile, options)>
+=item C<static void do_dis(PARROT_INTERP, outfile, int)>
 
 Do the disassembling.
 
@@ -147,9 +147,9 @@
 */
 
 static void
-do_dis(PARROT_INTERP, const char *outfile, Parrot_disassemble_options options)
+do_dis(PARROT_INTERP, const char *outfile, int options)
 {
-    Parrot_disassemble(interp, outfile, options);
+    Parrot_disassemble(interp, outfile, (Parrot_disassemble_options) options);
 }
 
 /*


More information about the parrot-commits mailing list