Bug 581468 - Fix warning: signed and unsigned type in conditional expression in XPT_DoString; r=bsmedberg
authorAtul Aggarwal <atulagrwl@gmail.com>
Wed, 31 Aug 2011 23:45:31 +0100
changeset 76357 6c63fffe3b216260a9fae5b4b0ea6d8f985b0b67
parent 76356 4ff7e79b62a9256a4658450d9b4de6570e85d2b5
child 76358 e817b1753380d9d7f067d30929a438fb8417d1f6
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersbsmedberg
bugs581468
milestone9.0a1
Bug 581468 - Fix warning: signed and unsigned type in conditional expression in XPT_DoString; r=bsmedberg
xpcom/typelib/xpt/src/xpt_xdr.c
--- a/xpcom/typelib/xpt/src/xpt_xdr.c
+++ b/xpcom/typelib/xpt/src/xpt_xdr.c
@@ -401,17 +401,17 @@ XPT_DoStringInline(XPTArena *arena, XPTC
 
 XPT_PUBLIC_API(PRBool)
 XPT_DoString(XPTArena *arena, XPTCursor *cursor, XPTString **strp)
 {
     XPTCursor my_cursor;
     XPTString *str = *strp;
     PRBool already;
 
-    XPT_PREAMBLE_NO_ALLOC(cursor, strp, XPT_DATA, str->length + 2, my_cursor,
+    XPT_PREAMBLE_NO_ALLOC(cursor, strp, XPT_DATA, str->length + 2u, my_cursor,
                           already)
 
     return XPT_DoStringInline(arena, &my_cursor, strp);
 }
 
 XPT_PUBLIC_API(PRBool)
 XPT_DoCString(XPTArena *arena, XPTCursor *cursor, char **identp)
 {