Advertisement
darkxst

Untitled

Dec 11th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. diff --git a/gi/interface.c b/gi/interface.c
  2. index 4ad8c7d..41cbb65 100644
  3. --- a/gi/interface.c
  4. +++ b/gi/interface.c
  5. @@ -183,7 +183,7 @@ gjs_define_interface_class(JSContext *context,
  6. constructor_name = g_base_info_get_name((GIBaseInfo*)info);
  7.  
  8. gjs_object_get_property(context, in_object, constructor_name, &value);
  9. - if (value != JSVAL_VOID) {
  10. + if (!JSVAL_IS_VOID(value)) {
  11. JSObject *constructor;
  12.  
  13. if (!JSVAL_IS_OBJECT(value)) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement