[gjs] Handle "releasing" short/ushort



commit a46fc40d8aec2a566b463ca8096b607e0218591b
Author: Colin Walters <walters verbum org>
Date:   Mon Jun 22 15:37:24 2009 -0400

    Handle "releasing" short/ushort
    
    Ensure we have short/ushort in all of the switch cases, though only
    the release path matters.

 gi/arg.c   |    6 ++++++
 gi/boxed.c |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gi/arg.c b/gi/arg.c
index e6c8054..748708e 100644
--- a/gi/arg.c
+++ b/gi/arg.c
@@ -1059,6 +1059,8 @@ gjs_value_to_g_argument(JSContext      *context,
         }
         break;
 
+    case GI_TYPE_TAG_SHORT:
+    case GI_TYPE_TAG_USHORT:
     case GI_TYPE_TAG_INT:
     case GI_TYPE_TAG_UINT:
     case GI_TYPE_TAG_LONG:
@@ -1567,6 +1569,8 @@ gjs_value_from_g_argument (JSContext  *context,
         }
         break;
 
+    case GI_TYPE_TAG_SHORT:
+    case GI_TYPE_TAG_USHORT:
     case GI_TYPE_TAG_INT:
     case GI_TYPE_TAG_UINT:
     case GI_TYPE_TAG_LONG:
@@ -1646,6 +1650,8 @@ gjs_g_arg_release_internal(JSContext  *context,
     case GI_TYPE_TAG_UINT8:
     case GI_TYPE_TAG_INT16:
     case GI_TYPE_TAG_UINT16:
+    case GI_TYPE_TAG_SHORT:
+    case GI_TYPE_TAG_USHORT:
     case GI_TYPE_TAG_INT:
     case GI_TYPE_TAG_INT32:
     case GI_TYPE_TAG_UINT:
diff --git a/gi/boxed.c b/gi/boxed.c
index a686807..f1cdbf8 100644
--- a/gi/boxed.c
+++ b/gi/boxed.c
@@ -1043,6 +1043,8 @@ struct_is_simple(GIStructInfo *info)
             case GI_TYPE_TAG_UINT16:
             case GI_TYPE_TAG_INT32:
             case GI_TYPE_TAG_UINT32:
+            case GI_TYPE_TAG_SHORT:
+            case GI_TYPE_TAG_USHORT:
             case GI_TYPE_TAG_INT:
             case GI_TYPE_TAG_UINT:
             case GI_TYPE_TAG_INT64:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]