From 688a828e3bfaa1d56d50e132b31930d964e26c5d Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 13 May 2022 14:36:25 +0200 Subject: Changed csview c_PRIsv macro. Now must be prefixed with "%", to match with PRIxYYY macros from inttypes.h. E.g. printf("%40" c_PRIsv "\n", c_ARGsv(sv)); to specify 40 character right aligned output of sv. Check your usage. --- include/stc/utf8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/stc/utf8.h') diff --git a/include/stc/utf8.h b/include/stc/utf8.h index 9a1493b6..50fbefc7 100644 --- a/include/stc/utf8.h +++ b/include/stc/utf8.h @@ -15,7 +15,7 @@ int main() csview sv = csview_from_s(s1); c_foreach (i, csview, sv) - printf(c_PRIsv ",", c_ARGsv(i.codep)); + printf("%" c_PRIsv ",", c_ARGsv(i.codep)); } } // Output: -- cgit v1.2.3