Skip to content

Commit 00a3114

Browse files
committed
code format
1 parent d1f9579 commit 00a3114

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shared-bindings/bitmaptools/__init__.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@
4545

4646
// This assigns to [0] and [2] because the order is x1, y1, x2, y2
4747
STATIC void bitmaptools_validate_coord_range(int16_t out[3], const mp_arg_val_t in[3], int lim, const qstr what[2]) {
48-
if (lim -1 > 0){
48+
if (lim - 1 > 0) {
4949
out[0] = mp_arg_validate_int_range(mp_arg_validate_type_int(in[0].u_obj, what[0]), 0, lim - 1, what[0]);
50-
}else{
50+
} else {
5151
out[0] = mp_arg_validate_type_int(in[0].u_obj, what[0]);
5252
}
5353

5454
if (in[2].u_obj == mp_const_none) {
5555
out[2] = lim;
5656
} else {
57-
if (lim > out[0] + 1){
57+
if (lim > out[0] + 1) {
5858
out[2] = mp_arg_validate_int_range(mp_arg_validate_type_int(in[2].u_obj, what[1]), out[0] + 1, lim, what[1]);
59-
}else{
59+
} else {
6060
out[2] = mp_arg_validate_type_int(in[2].u_obj, what[1]);
6161
}
6262
}

0 commit comments

Comments
 (0)