This is an automated email from the git hooks/post-receive script.

git pushed a commit to reference refs/pull/114/head
in repository efl.

View the commit online.

commit 276166897336ac940259132a0498bd9c7f55a796
Author: [email protected] <[email protected]>
AuthorDate: Wed Sep 16 21:13:43 2026 -0600

    evas_ector_gl: simplify _write_span_entry
---
 src/modules/evas/engines/gl_generic/evas_ector_gl_span.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/modules/evas/engines/gl_generic/evas_ector_gl_span.c b/src/modules/evas/engines/gl_generic/evas_ector_gl_span.c
index 8c7a57cf28..0a5407fd8c 100644
--- a/src/modules/evas/engines/gl_generic/evas_ector_gl_span.c
+++ b/src/modules/evas/engines/gl_generic/evas_ector_gl_span.c
@@ -283,13 +283,13 @@ span_collector_clear(Span_Collector *sc)
 static inline void
 _write_span_entry(uint8_t *dst, int cov, int len, int gap)
 {
-   if (gap < 0) gap = 0;
-   if (gap > 255) gap = 255;
-   if (len < 0) len = 0;
-   if (len > 255) len = 255;
-   dst[0] = (uint8_t)cov;
-   dst[1] = (uint8_t)len;
-   dst[2] = (uint8_t)gap;
+#define SPAN_LIM(x) ((x) < 0 ? 0 : ((x) > 255 ? 255 : (x)))
+
+   gap = SPAN_LIM(gap);
+   len = SPAN_LIM(len);
+   dst[0] = cov;
+   dst[1] = len;
+   dst[2] = gap;
    dst[3] = 0;
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to