diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-12-11 15:18:17 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2002-12-11 15:18:17 +0000 |
commit | c7b72e28a2825d64581626d32f80185447420040 (patch) | |
tree | ad717dcf210b27b2febf6549e806b525cff31987 | |
parent | 442ca3c91e1f7cb18428a9b6d0fc5615bf62aa54 (diff) | |
download | mailutils-c7b72e28a2825d64581626d32f80185447420040.tar.gz mailutils-c7b72e28a2825d64581626d32f80185447420040.tar.bz2 |
(struct mh_machine): Changed type of arg_num to long.
-rw-r--r-- | mh/mh_format.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mh/mh_format.c b/mh/mh_format.c index 64851243a..21b885c95 100644 --- a/mh/mh_format.c +++ b/mh/mh_format.c @@ -35,7 +35,7 @@ struct mh_machine int reg_num; /* Numeric register */ strobj_t arg_str; /* String argument */ - int arg_num; /* Numeric argument */ + long arg_num; /* Numeric argument */ size_t pc; /* Program counter */ size_t progsize; /* Size of allocated program*/ @@ -351,7 +351,7 @@ mh_format (mh_format_t *fmt, message_t msg, size_t msgno, /* Convert arg_num to arg_str */ case mhop_num_to_str: - snprintf (buf, sizeof buf, "%d", mach.arg_num); + snprintf (buf, sizeof buf, "%l", mach.arg_num); strobj_free (&mach.arg_str); strobj_create (&mach.arg_str, buf); break; @@ -643,7 +643,9 @@ builtin_cur (struct mh_machine *mach) static void builtin_size (struct mh_machine *mach) { - message_size (mach->message, &mach->arg_num); + size_t size; + if (message_size (mach->message, &size) == 0) + mach->arg_num = size; } static void |