aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 43f3dc4..1be85dc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -546,7 +546,7 @@ main(int argc, char **argv)
}
g_clear_error(&error);
- if (!teco_expressions_pop_num_calc(&ret, EXIT_SUCCESS, &error) ||
+ if (!teco_expressions_pop_int_calc(&ret, EXIT_SUCCESS, &error) ||
!teco_ed_hook(TECO_ED_HOOK_QUIT, &error))
goto cleanup;
goto cleanup;
@@ -586,7 +586,7 @@ main(int argc, char **argv)
if (teco_ed & TECO_ED_EXIT) {
/* exit was requested using the EX command */
- if (!teco_expressions_pop_num_calc(&ret, EXIT_SUCCESS, &error) ||
+ if (!teco_expressions_pop_int_calc(&ret, EXIT_SUCCESS, &error) ||
!teco_ed_hook(TECO_ED_HOOK_QUIT, &error))
goto cleanup;
goto cleanup;