SHARE
TWEET

Untitled

a guest Dec 2nd, 2014 275 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/mingw-w64-tools/widl/src/typetree.h b/mingw-w64-tools/widl/src/typetree.h
  2. index 8ba348b..180444d 100644
  3. --- a/mingw-w64-tools/widl/src/typetree.h
  4. +++ b/mingw-w64-tools/widl/src/typetree.h
  5. @@ -115,7 +115,9 @@ static inline var_list_t *type_enum_get_values(const type_t *type)
  6.  {
  7.      type = type_get_real_type(type);
  8.      assert(type_get_type(type) == TYPE_ENUM);
  9. +    if (type->details.enumeration)
  10.      return type->details.enumeration->enums;
  11. +    return NULL;
  12.  }
  13.  
  14.  static inline var_t *type_union_get_switch_value(const type_t *type)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top