This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch span-gl-clean
in repository efl.
View the commit online.
commit 11e20e9f84f2eb9dc1a6a3c73d244af995532092
Author: [email protected] <[email protected]>
AuthorDate: Sun Sep 13 18:46:22 2026 -0600
evas_ector_gl: test memcmp() with ! as EFL code does
The review pointed out that EFL writes !memcmp(...) rather than
memcmp(...) == 0. _find_by_content() in the gradient atlas was the only
place on this branch using the == 0 form; switch it over.
The other comparisons the branch adds already follow the idiom:
!strcmp() for equality and a bare strcmp() for inequality. The
ck_assert_int_ne(memcmp(...), 0) in the atlas unit test is an assertion
argument, not a condition, and stays as is.
No behaviour change. The build is clean, and ector_suite (including the
gradient atlas tests) and evas_suite pass.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
---
src/modules/evas/engines/gl_generic/evas_ector_gl_grad_atlas.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/modules/evas/engines/gl_generic/evas_ector_gl_grad_atlas.c b/src/modules/evas/engines/gl_generic/evas_ector_gl_grad_atlas.c
index ba280e4d62..ac31227bae 100644
--- a/src/modules/evas/engines/gl_generic/evas_ector_gl_grad_atlas.c
+++ b/src/modules/evas/engines/gl_generic/evas_ector_gl_grad_atlas.c
@@ -142,8 +142,8 @@ _find_by_content(Span_Grad_Atlas *a, uint32_t hash, const uint8_t *bytes)
{
if (!a->rows[i].occupied) continue;
if (a->rows[i].hash != hash) continue;
- if (memcmp(a->cpu_mirror + ((size_t)i * SPAN_GRAD_ATLAS_ROW_BYTES),
- bytes, SPAN_GRAD_ATLAS_ROW_BYTES) == 0)
+ if (!memcmp(a->cpu_mirror + ((size_t)i * SPAN_GRAD_ATLAS_ROW_BYTES),
+ bytes, SPAN_GRAD_ATLAS_ROW_BYTES))
return i;
}
return -1;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.