summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-25 20:09:10 +0200
committerTyge Løvset <[email protected]>2022-09-25 20:09:10 +0200
commitc247a7628c16c2658562c187dbfb1805a1b0f705 (patch)
tree3475cac859653d2599e47c1d1257d1a4784f262f /include
parenta383150d78622d1177ba1da5f5060d08b520cdf5 (diff)
downloadSTC-modified-c247a7628c16c2658562c187dbfb1805a1b0f705.tar.gz
STC-modified-c247a7628c16c2658562c187dbfb1805a1b0f705.zip
Change crange_value from intmax_t to 'long long' - enables usage of "%lld" format.
Diffstat (limited to 'include')
-rw-r--r--include/stc/ccommon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h
index 49f735f7..02f41dd5 100644
--- a/include/stc/ccommon.h
+++ b/include/stc/ccommon.h
@@ -203,7 +203,7 @@ STC_INLINE char* c_strnstrn(const char *s, const char *needle,
for (itype i=start, _inc=step, _end=(stop) - (_inc > 0) \
; (_inc > 0) ^ (i > _end); i += _inc)
-typedef intmax_t crange_value;
+typedef long long crange_value;
struct {crange_value val, end, step; } typedef crange;
struct {crange_value *ref, end, step; } typedef crange_iter;
#define crange_from(...) c_MACRO_OVERLOAD(crange_from, __VA_ARGS__)