Skip to content

Commit f95da4b

Browse files
authored
change type of crtc and planes count to size_t
1 parent 88a210d commit f95da4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/modesetting.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ struct drmdev {
4646
size_t n_encoders;
4747
struct drm_encoder *encoders;
4848

49-
int n_crtcs;
49+
size_t n_crtcs;
5050
struct drm_crtc *crtcs;
5151

52-
int n_planes;
52+
size_t n_planes;
5353
struct drm_plane *planes;
5454

5555
drmModeRes *res;
@@ -304,4 +304,4 @@ inline static drmModeModeInfo *__next_mode(const struct drm_connector *connector
304304

305305
#define for_each_unreserved_plane_in_atomic_req(atomic_req, plane) for_each_pointer_in_pset(&(atomic_req)->available_planes, plane)
306306

307-
#endif
307+
#endif

0 commit comments

Comments
 (0)