diff options
author | 1999-06-06 15:55:17 +0000 | |
---|---|---|
committer | 1999-06-06 15:55:17 +0000 | |
commit | 096fbc8cec8dba545ec9672e23b84c781fa859a4 (patch) | |
tree | 74b9bfd14817b8288d13afa0a8a973f9edc54664 /lib/libcurses/tinfo/lib_tparm.c | |
parent | make G newline if hold is empty (diff) | |
download | wireguard-openbsd-096fbc8cec8dba545ec9672e23b84c781fa859a4.tar.xz wireguard-openbsd-096fbc8cec8dba545ec9672e23b84c781fa859a4.zip |
ncurses-4.2-990605
Diffstat (limited to 'lib/libcurses/tinfo/lib_tparm.c')
-rw-r--r-- | lib/libcurses/tinfo/lib_tparm.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libcurses/tinfo/lib_tparm.c b/lib/libcurses/tinfo/lib_tparm.c index 228ecdbfc6f..fa546352160 100644 --- a/lib/libcurses/tinfo/lib_tparm.c +++ b/lib/libcurses/tinfo/lib_tparm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lib_tparm.c,v 1.3 1999/05/13 03:01:47 aaron Exp $ */ +/* $OpenBSD: lib_tparm.c,v 1.4 1999/06/06 15:55:18 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -45,7 +45,7 @@ #include <term.h> #include <tic.h> -MODULE_ID("$From: lib_tparm.c,v 1.38 1999/02/27 20:08:22 tom Exp $") +MODULE_ID("$From: lib_tparm.c,v 1.39 1999/06/06 00:04:55 tom Exp $") /* * char * @@ -440,15 +440,13 @@ static int static_vars[NUM_VARS]; case '/': y = npop(); x = npop(); - if (y) - npush(x / y); + npush(y ? (x / y) : 0); break; case 'm': y = npop(); x = npop(); - if (y) - npush(x % y); + npush(y ? (x % y) : 0); break; case 'A': |