commit | e9e9801a84f5bb053903654634b068dbee72db88 | [log] [tgz] |
---|---|---|
author | Cosmin Truta <ctruta@gmail.com> | Wed Sep 14 11:07:36 2022 +0300 |
committer | Cosmin Truta <ctruta@gmail.com> | Wed Sep 14 11:07:36 2022 +0300 |
tree | 860b59831e5ea0b2aee7326674f93f7895b17cbc | |
parent | 0c2388cdae0b7277cf9b6e2cf6d745a193adcf40 [diff] |
Simplify the definition of png_isaligned and avoid compiler warnings The following pointer subtraction was unnecessary: ((const char*)(ptr)-(const char*)0) In order to avoid further warnings about casting a wide pointer type to a narrower integer type, we cast the pointer to the target integer type through (size_t). Also fix a comment and reformat the surrounding code.