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 77668 6c63fffe3b216260a9fae5b4b0ea6d8f985b0b67
parent 77667 4ff7e79b62a9256a4658450d9b4de6570e85d2b5
child 77669 e817b1753380d9d7f067d30929a438fb8417d1f6
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs581468
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)
 {