Skip to content

Commit 33ff16f

Browse files
committed
Fix: format zend long
1 parent 11970f8 commit 33ff16f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel/format.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ PHP_METHOD(vtiful_format, underline)
159159
format_object *obj = Z_FORMAT_P(getThis());
160160

161161
if (obj->ptr.format) {
162-
format_set_underline(obj->ptr.format, (uint8_t)style);
162+
format_set_underline(obj->ptr.format, style);
163163
}
164164
}
165165
/* }}} */
@@ -187,7 +187,7 @@ PHP_METHOD(vtiful_format, align)
187187
}
188188

189189
if (obj->ptr.format) {
190-
format_set_align(obj->ptr.format, (uint8_t)Z_LVAL_P(arg));
190+
format_set_align(obj->ptr.format, Z_LVAL_P(arg));
191191
}
192192
}
193193
}
@@ -208,7 +208,7 @@ PHP_METHOD(vtiful_format, fontColor)
208208
format_object *obj = Z_FORMAT_P(getThis());
209209

210210
if (obj->ptr.format) {
211-
format_set_font_color(obj->ptr.format, (uint8_t)color);
211+
format_set_font_color(obj->ptr.format, color);
212212
}
213213
}
214214
/* }}} */
@@ -339,7 +339,7 @@ PHP_METHOD(vtiful_format, border)
339339
format_object *obj = Z_FORMAT_P(getThis());
340340

341341
if (obj->ptr.format) {
342-
format_set_border(obj->ptr.format, (uint8_t)style);
342+
format_set_border(obj->ptr.format, style);
343343
}
344344
}
345345
/* }}} */

0 commit comments

Comments
 (0)