diff options
-rw-r--r-- | changelog.md | 4 | ||||
-rw-r--r-- | include/u8c/txt.h | 2 | ||||
-rw-r--r-- | include/u8c/ver.h | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/changelog.md b/changelog.md index 4fbc674..77907fd 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# 13 + +* Fix `u8c_txt` in C++. + # 12 * Use `u8c_println` instead of `u8c_print` in `u8c_dbgprint`. diff --git a/include/u8c/txt.h b/include/u8c/txt.h index 8b2ba45..4959e81 100644 --- a/include/u8c/txt.h +++ b/include/u8c/txt.h @@ -20,7 +20,7 @@ # if !defined(u8c_txt) # if defined(__cplusplus) # include <cstdint> -# define u8c_txt(txt) (reinterpret_cast<std::uint_least32_t const *>(U ## txt ## )) +# define u8c_txt(txt) (reinterpret_cast<std::uint_least32_t const *>(U ## txt)) # else # include <stdint.h> # define u8c_txt(txt) (uint_least32_t const *)U ## txt diff --git a/include/u8c/ver.h b/include/u8c/ver.h index 8dc9042..edf91ed 100644 --- a/include/u8c/ver.h +++ b/include/u8c/ver.h @@ -16,5 +16,5 @@ /* Version */ # if !defined(u8c_ver) # include <stdint.h> -# define u8c_ver (UINT64_C(0xE)) +# define u8c_ver (UINT64_C(0xF)) # endif |