Bug 385393: Changing the return value of js_BoyerMooreHorspool to be jsint to fix mingw compilation.
authorigor@mir2.org
Thu, 02 Aug 2007 02:14:06 -0700
changeset 4151 ace1b41a4e82e8ab38e947243d8925a1da814aa9
parent 4150 6963a97e5ddc37054bc22368a75e15dd3c866170
child 4152 30937af3a0f92c63a43ac0a92dd30a7c5052a854
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs385393
milestone1.9a7pre
Bug 385393: Changing the return value of js_BoyerMooreHorspool to be jsint to fix mingw compilation.
js/src/jsstr.c
--- a/js/src/jsstr.c
+++ b/js/src/jsstr.c
@@ -933,17 +933,17 @@ str_charCodeAt(JSContext *cx, uintN argc
     *vp = INT_TO_JSVAL(JSSTRING_CHARS(str)[i]);
     return JS_TRUE;
 
 out_of_range:
     *vp = JS_GetNaNValue(cx);
     return JS_TRUE;
 }
 
-int
+jsint
 js_BoyerMooreHorspool(const jschar *text, jsint textlen,
                       const jschar *pat, jsint patlen,
                       jsint start)
 {
     jsint i, j, k, m;
     uint8 skip[BMH_CHARSET_SIZE];
     jschar c;