aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/skcms/src/Transform.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/skcms/src/Transform.c')
-rw-r--r--third_party/skcms/src/Transform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/skcms/src/Transform.c b/third_party/skcms/src/Transform.c
index 9e893cf369..818294850e 100644
--- a/third_party/skcms/src/Transform.c
+++ b/third_party/skcms/src/Transform.c
@@ -312,8 +312,8 @@ bool g_skcms_dump_profile = false;
#endif
static bool is_identity_tf(const skcms_TransferFunction* tf) {
- static const skcms_TransferFunction I = {1,1,0,0,0,0,0};
- return 0 == memcmp(&I, tf, sizeof(I));
+ return tf->g == 1 && tf->a == 1
+ && tf->b == 0 && tf->c == 0 && tf->d == 0 && tf->e == 0 && tf->f == 0;
}
typedef struct {