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:
parent
5ad9e40c1b
commit
619c90588d
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user