aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2006-03-09 11:51:20 +0000
committerThomas Grill <xovo@users.sourceforge.net>2006-03-09 11:51:20 +0000
commit16aa9b1f769721380ce6dca3e52fa65bf92e84ad (patch)
treea2a4542c9bcd81133d2985834ade825501ea8691
parent241c6627ee72374d51e21cb71d021f26692ef41a (diff)
fix for gcc
svn path=/trunk/externals/clr/; revision=4661
-rwxr-xr-xclr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clr.cpp b/clr.cpp
index eb4fd14..c8c435f 100755
--- a/clr.cpp
+++ b/clr.cpp
@@ -517,8 +517,7 @@ static void PD_OutletAtom(t_clr *obj,int n,t_atom l)
case A_FLOAT: outlet_float(out,l.a_w.w_float); break;
case A_SYMBOL: outlet_symbol(out,l.a_w.w_symbol); break;
case A_POINTER: outlet_pointer(out,l.a_w.w_gpointer); break;
- default:
- error("CLR - internal error in file " __FILE__ ", line %i",__LINE__);
+ default: assert(false);
}
}
@@ -631,6 +630,7 @@ static int classloader(char *dirname, char *classname)
MonoAssembly *assembly;
MonoImage *image;
MonoMethod *method;
+ int flags = CLASS_DEFAULT;
char dirbuf[MAXPDSTRING],*nameptr;
// search for classname.dll in the PD path
@@ -671,7 +671,6 @@ static int classloader(char *dirname, char *classname)
// make new class (with classname)
classsym = gensym(classname);
clr_class->pd_class = NULL;
- int flags = CLASS_DEFAULT;
clr_class->obj_field = mono_class_get_field_from_name(clr_class->mono_class,"ptr");
assert(clr_class->obj_field);