summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/sview_split.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/sview_split.c')
-rw-r--r--misc/examples/sview_split.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/sview_split.c b/misc/examples/sview_split.c
index 5658924e..2d4b5324 100644
--- a/misc/examples/sview_split.c
+++ b/misc/examples/sview_split.c
@@ -6,7 +6,7 @@ int main()
{
// No memory allocations or string length calculations!
const csview date = c_SV("2021/03/12");
- size_t pos = 0;
+ intptr_t pos = 0;
const csview year = csview_token(date, "/", &pos);
const csview month = csview_token(date, "/", &pos);
const csview day = csview_token(date, "/", &pos);