Fixed bug in funcs.c -- hebdate function ignored aflag parameter if there

were 5 arguments.
This commit is contained in:
dfs
1996-03-30 04:00:29 +00:00
parent 1b189e0cb5
commit fc3e709b06
3 changed files with 2 additions and 6 deletions

View File

@@ -10,7 +10,7 @@
/* */ /* */
/***************************************************************/ /***************************************************************/
static char const RCSID[] = "$Id: funcs.c,v 1.1 1996-03-27 03:25:56 dfs Exp $"; static char const RCSID[] = "$Id: funcs.c,v 1.2 1996-03-30 04:00:29 dfs Exp $";
#include "config.h" #include "config.h"
#include <stdio.h> #include <stdio.h>
@@ -1719,7 +1719,7 @@ static int FHebdate()
if (adarbehave > 2) return E_2HIGH; if (adarbehave > 2) return E_2HIGH;
} else adarbehave = 0; } else adarbehave = 0;
if (Nargs == 4) { if (Nargs >= 4) {
if (ARG(3).type != INT_TYPE) return E_BAD_TYPE; if (ARG(3).type != INT_TYPE) return E_BAD_TYPE;
jahr = ARG(3).v.val; jahr = ARG(3).v.val;
if (jahr < 0) return E_2LOW; if (jahr < 0) return E_2LOW;

View File

@@ -1,7 +1,5 @@
# Test file for REMIND # Test file for REMIND
# #
# $Id: test.cmp,v 1.1 1996-03-27 03:26:11 dfs Exp $
#
# Use this file to test the date calculation routines # Use this file to test the date calculation routines
# of the REMIND program by typing: # of the REMIND program by typing:
# #

View File

@@ -1,7 +1,5 @@
# Test file for REMIND # Test file for REMIND
# #
# $Id: test.rem,v 1.1 1996-03-27 03:26:12 dfs Exp $
#
# Use this file to test the date calculation routines # Use this file to test the date calculation routines
# of the REMIND program by typing: # of the REMIND program by typing:
# #