From f94b5ef5fc6111722cde7c71671177ca68e3e483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sat, 23 Aug 2014 11:26:20 +0200 Subject: [PATCH] Runtime: Fixed some broken type checks. NB: There's a difference between the C-types "int" and "INT_TYPE"... --- src/builtin_functions.c | 2 +- src/security.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtin_functions.c b/src/builtin_functions.c index 0580aa2d0f..8b624a30cd 100644 --- a/src/builtin_functions.c +++ b/src/builtin_functions.c @@ -5467,7 +5467,7 @@ PMOD_EXPORT void f__assembler_debug(INT32 args) void f__dump_program_tables(INT32 args) { struct program *p; - int indent = 0; + INT_TYPE indent = 0; ASSERT_SECURITY_ROOT("_dump_program_tables"); /* FIXME: Might want lower. */ get_all_args("_dump_program_tables", args, "%p.%+", &p, &indent); diff --git a/src/security.c b/src/security.c index f575af5bc3..71c3da2345 100644 --- a/src/security.c +++ b/src/security.c @@ -237,7 +237,7 @@ static void creds_create(INT32 args) CHECK_SECURITY_OR_ERROR(SECURITY_BIT_SECURITY, ("creds_create: permission denied.\n")); - get_all_args("init_creds",args,"%o%d%d",&o,&may,&data); + get_all_args("init_creds",args,"%o%i%i",&o,&may,&data); if(THIS->user) Pike_error("You may only call creds_create once.\n"); -- GitLab