Followup fix for bug 406251, make NPVariant.intValue be a signed int so negative ints can be passed through safely. r+sr=jonas@sicking.cc
authorjst@mozilla.org
Thu, 13 Mar 2008 17:48:20 -0700
changeset 13040 e407423119636dce03247470e71263bf32786e5b
parent 13039 1423caed11d538d8542987178e58722ab72a539a
child 13041 ce720feb26ddf59156fef762fa4fa12060aed2e2
push idunknown
push userunknown
push dateunknown
bugs406251
milestone1.9b5pre
Followup fix for bug 406251, make NPVariant.intValue be a signed int so negative ints can be passed through safely. r+sr=jonas@sicking.cc
modules/plugin/base/public/npruntime.h
--- a/modules/plugin/base/public/npruntime.h
+++ b/modules/plugin/base/public/npruntime.h
@@ -128,17 +128,17 @@ typedef enum {
     NPVariantType_String,
     NPVariantType_Object
 } NPVariantType;
 
 typedef struct _NPVariant {
     NPVariantType type;
     union {
         bool boolValue;
-        uint32_t intValue;
+        int32_t intValue;
         double doubleValue;
         NPString stringValue;
         NPObject *objectValue;
     } value;
 } NPVariant;
 
 /*
     NPN_ReleaseVariantValue is called on all 'out' parameters