aboutsummaryrefslogtreecommitdiffstats
path: root/libcmap.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-06-07 14:15:56 +0200
committerMattias Andrée <m@maandree.se>2026-06-07 14:15:56 +0200
commit6139ee872d09d34618a3ab590a6da03fdc590837 (patch)
tree68e3e363d3c96c83aa52be1d42e332c586c0d24e /libcmap.h
parentFix whitespace typo (diff)
downloadlibcmap-6139ee872d09d34618a3ab590a6da03fdc590837.tar.gz
libcmap-6139ee872d09d34618a3ab590a6da03fdc590837.tar.bz2
libcmap-6139ee872d09d34618a3ab590a6da03fdc590837.tar.xz
Style improvementHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--libcmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcmap.h b/libcmap.h
index 6980daa..a62ddee 100644
--- a/libcmap.h
+++ b/libcmap.h
@@ -33,7 +33,7 @@
* @param RANGE:const libcmap_range * The codepoint range
* @return :size_t The number of covered codepoints
*/
-#define LIBCMAP_RANGE_SIZE(RANGE) ((size_t)((RANGE)->last - (RANGE)->first + 1U))
+#define LIBCMAP_RANGE_SIZE(RANGE) ((size_t)((RANGE)->last - (RANGE)->first + 1u))
/**
@@ -272,8 +272,8 @@ int libcmap_sprint_range(char *buf, const struct libcmap_range *range, const cha
* will not be counted in the return value
*
* If `bufsize` is not sufficiently large, string printed to
- * `buf` will be truncated to `bufsize - 1U` bytes, a NUL
- * byte will be added to the end (at `buf[bufsize - 1U`);
+ * `buf` will be truncated to `bufsize - 1u` bytes, a NUL
+ * byte will be added to the end (at `buf[bufsize - 1u`);
* however if `bufsize` is 0, nothing is written to `buf`.
* The function will always return the size the full string,
* even if it was truncated; therefore the return value can