summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/stack.c')
-rw-r--r--misc/examples/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/stack.c b/misc/examples/stack.c
index 370577b9..86099607 100644
--- a/misc/examples/stack.c
+++ b/misc/examples/stack.c
@@ -15,7 +15,7 @@ int main() {
c_AUTO (cstack_c, chars)
{
c_FORRANGE (i, 101)
- cstack_i_push(&stack, i*i);
+ cstack_i_push(&stack, (int)(i*i));
printf("%d\n", *cstack_i_top(&stack));