Skip to content

Commit 0bc1826

Browse files
committed
1 parent 935e3aa commit 0bc1826

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

classes/grid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ PHP_METHOD(Grid, append)
102102
zend_bool hexpand = 0, vexpand = 0;
103103
php_ui_control_t *ctrl;
104104

105-
if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "Ollllblbl", &control, uiControl_ce, &left, &top, &xspan, &yspan, &hexpand, &halign, &vexpand, &valign) != SUCCESS) {
105+
if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "Olllllblbl", &control, uiControl_ce, &left, &top, &xspan, &yspan, &hexpand, &halign, &vexpand, &valign) != SUCCESS) {
106106
return;
107107
}
108108

classes/progress.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ PHP_METHOD(Progress, setValue)
5858
return;
5959
}
6060

61-
if (value < 0 || value > 100) {
61+
if (value < -1 || value > 100) {
6262
php_ui_exception_ex(InvalidArgumentException,
63-
"progress bars have a range of 0-100 inclusive");
63+
"progress bars have a range of -1 - 100 inclusive");
6464
return;
6565
}
6666

0 commit comments

Comments
 (0)