chiark / gitweb /
Use a conventional lenof() macro for lengths of static arrays
authorBen Harris <bjh21@bjh21.me.uk>
Wed, 29 Jan 2025 13:57:28 +0000 (13:57 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Wed, 29 Jan 2025 13:57:28 +0000 (13:57 +0000)
commit689b4a76f4e61e9dc33bba831e4652671cf95101
tree87cdf0c57c8b3b5b2b088b9e9aa59e126515eab6
parent72fb39b7062c22b5f7c9ffb07cdc6a8f62b8ab9e
Use a conventional lenof() macro for lengths of static arrays

It's slightly unconventional in that it casts the result to int, which
is fine for all our arrays and avoids warnings when we use it.
bedstead.c