From e42aa7d85bdce78539849983f7ed5d269e5d2beb Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 28 Nov 2025 14:14:59 +0100 Subject: [PATCH] quirc.c: comments --- c_mpos/quirc/lib/quirc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_mpos/quirc/lib/quirc.c b/c_mpos/quirc/lib/quirc.c index 208746ec..8f9da73e 100644 --- a/c_mpos/quirc/lib/quirc.c +++ b/c_mpos/quirc/lib/quirc.c @@ -64,7 +64,7 @@ int quirc_resize(struct quirc *q, int w, int h) /* * alloc a new buffer for q->image. We avoid realloc(3) because we want - * on failure to be leave `q` in a consistant, unmodified state. + * on failure to be leaving `q` in a consistent, unmodified state. */ image = ps_malloc(w * h); if (!image) @@ -72,7 +72,7 @@ int quirc_resize(struct quirc *q, int w, int h) /* compute the "old" (i.e. currently allocated) and the "new" (i.e. requested) image dimensions */ - size_t olddim = q->w * q->h; + size_t olddim = q->w * q->h; // these are initialized to 0 by quirc_new() size_t newdim = w * h; size_t min = (olddim < newdim ? olddim : newdim);