From 0dd5e316338f992984c7ac77ce9b2657a77ece7b Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 8 Apr 2018 15:44:35 -0400 Subject: static_assert PNG header size in pngo and glitch --- bin/glitch.c | 1 + bin/pngo.c | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/glitch.c b/bin/glitch.c index ea9c083d..3a3bfde5 100644 --- a/bin/glitch.c +++ b/bin/glitch.c @@ -127,6 +127,7 @@ static struct PACKED { uint8_t filter; uint8_t interlace; } header; +static_assert(13 == sizeof(header), "header size"); static size_t lineSize(void) { switch (header.color) { diff --git a/bin/pngo.c b/bin/pngo.c index c34ec7d1..eada7e01 100644 --- a/bin/pngo.c +++ b/bin/pngo.c @@ -132,6 +132,7 @@ static struct PACKED { enum PACKED { ADAPTIVE } filter; enum PACKED { PROGRESSIVE, ADAM7 } interlace; } header; +static_assert(13 == sizeof(header), "header size"); static size_t lineSize(void) { switch (header.color) { -- cgit 1.4.1 e>
summary refs log tree commit diff
path: root/bin/pngo.c (unfollow)
Commit message (Collapse)Author
2019-05-12Add T suffix in bitJune McEnroe
2019-05-10Highlight yacc and lex files as CJune McEnroe
Their %-prefixed directives should probably be highlighted Macro.
2019-05-10Use val instead of suboptargJune McEnroe
suboptarg doesn't exist in GNU. Hopefully BSD getsubopt also sets val on failure?
2019-05-09Add Parable of the SowerJune McEnroe
2019-05-07Add bit without buildJune McEnroe
Need to do some stuff in the Makefile for lex and yacc and generating HTML pages for it.
2019-05-04Fix MANDIR typoJune McEnroe
2019-05-04Move relay to binJune McEnroei-log.c?h=1.4.0&id=4046e8ef66225928a4f0d2cd71479e401faf7c3b&follow=1'>ui-log: ignore unhandled argumentsJohn Keeping
2014-06-28git: update for git 2.0Christian Hesse
2014-04-17remove trailing whitespaces from source filesChristian Hesse
2014-04-12git: update to 1.9.2Christian Hesse
2014-04-05Fix cgit_parse_url when a repo url is contained in another repo urlJulian Maurice
2014-03-20Makefile: use more reliable git tarball mirrorJason A. Donenfeld
2014-03-20git: update to 1.9.1Christian Hesse