aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-12-28 16:28:19 +0100
committerDominique Martinet <asmadeus@codewreck.org>2017-12-28 16:28:19 +0100
commit8e24aaa3c6959089f0459e03f01c7b1f638d6027 (patch)
tree947134beedaa8368c8ab702ea9a599dc155ccd27 /backend
parentda3ef46daf6ce678ca9e12ef184d281009b9f91f (diff)
style: fix sizeof() calls without parentheses
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/util.c b/backend/drm/util.c
index 25256343..37d99aa8 100644
--- a/backend/drm/util.c
+++ b/backend/drm/util.c
@@ -223,7 +223,7 @@ static bool match_obj_(struct match_state *st, size_t skips, size_t score, size_
if (score > st->score || (score == st->score && replaced < st->replaced)) {
st->score = score;
st->replaced = replaced;
- memcpy(st->best, st->res, sizeof st->best[0] * st->num_res);
+ memcpy(st->best, st->res, sizeof(st->best[0]) * st->num_res);
if (st->score == st->num_objs && st->replaced == 0) {
st->exit_early = true;