[svn:parrot] r45106 - trunk/src

NotFound at svn.parrot.org NotFound at svn.parrot.org
Mon Mar 22 18:36:44 UTC 2010


Author: NotFound
Date: Mon Mar 22 18:36:44 2010
New Revision: 45106
URL: https://trac.parrot.org/parrot/changeset/45106

Log:
Fix C++ build

Modified:
   trunk/src/dynext.c

Modified: trunk/src/dynext.c
==============================================================================
--- trunk/src/dynext.c	Mon Mar 22 18:30:25 2010	(r45105)
+++ trunk/src/dynext.c	Mon Mar 22 18:36:44 2010	(r45106)
@@ -649,7 +649,7 @@
     STRING *path;
     STRING *lib_name, *wo_ext, *ext;    /* library stem without path
                                          * or extension.  */
-    Parrot_dlopen_flags flags;
+    int flags = 0;
     /* Find the pure library name, without path or extension.  */
     /*
      * TODO move the class_count_mutex here
@@ -671,12 +671,11 @@
         return lib_pmc;
     }
 
-    flags = 0;
     if (!PMC_IS_NULL(parameters)) {
         flags = VTABLE_get_integer(interp, parameters);
     }
 
-    path = get_path(interp, lib, flags, &handle, wo_ext, ext);
+    path = get_path(interp, lib, (Parrot_dlopen_flags)flags, &handle, wo_ext, ext);
     if (!path || !handle) {
         /*
          * XXX Parrot_ex_throw_from_c_args? return PMCNULL?


More information about the parrot-commits mailing list