Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/class.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/vm/class.c b/vm/class.c
index 2cf0157..9b9c3d5 100644
--- a/vm/class.c
+++ b/vm/class.c
@@ -34,6 +34,7 @@ typedef void (*exception_init_fn)(struct object *, struct 
object *);
 struct object *new_exception(char *class_name, char *message)
 {
        struct object *message_str;
+       exception_init_fn init;
        struct methodblock *mb;
        struct object *obj;
        Class *e_class;
@@ -56,7 +57,7 @@ struct object *new_exception(char *class_name, char *message)
                die("%s: constructor not found for class %s\n",
                    __FUNCTION__, class_name);
 
-       exception_init_fn init = (exception_init_fn)method_trampoline_ptr(mb);
+       init = method_trampoline_ptr(mb);
        init(obj, message_str);
 
        return obj;
-- 
1.6.0.6


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to