1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

SMJS: Correct sense of JS_ValueToInt32 return value test.

I made this bug in commit b53525e98e.
This commit is contained in:
Kalle Olavi Niemitalo 2007-05-30 03:10:54 +03:00 committed by Kalle Olavi Niemitalo
parent 5ad9e40c1b
commit 619c90588d

View File

@ -365,7 +365,7 @@ input_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
: FORM_MODE_NORMAL); : FORM_MODE_NORMAL);
break; break;
case JSP_INPUT_MAX_LENGTH: case JSP_INPUT_MAX_LENGTH:
if (JS_ValueToInt32(ctx, *vp, &fc->maxlength)) if (!JS_ValueToInt32(ctx, *vp, &fc->maxlength))
return JS_FALSE; return JS_FALSE;
break; break;
case JSP_INPUT_NAME: case JSP_INPUT_NAME: