Skip to content
Snippets Groups Projects
Commit 436852e9 authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Only look for bignums if they are available.

Rev: src/module_support.c:1.58
parent 036960ec
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT. || This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information. || for more information.
|| $Id: module_support.c,v 1.57 2003/12/09 12:51:41 grubba Exp $ || $Id: module_support.c,v 1.58 2003/12/17 21:08:34 marcus Exp $
*/ */
#include "global.h" #include "global.h"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#define sp Pike_sp #define sp Pike_sp
RCSID("$Id: module_support.c,v 1.57 2003/12/09 12:51:41 grubba Exp $"); RCSID("$Id: module_support.c,v 1.58 2003/12/17 21:08:34 marcus Exp $");
/* Checks that args_to_check arguments are OK. /* Checks that args_to_check arguments are OK.
* Returns 1 if everything worked ok, zero otherwise. * Returns 1 if everything worked ok, zero otherwise.
...@@ -229,9 +229,11 @@ int va_get_args(struct svalue *s, ...@@ -229,9 +229,11 @@ int va_get_args(struct svalue *s,
if (s->type == T_INT) { if (s->type == T_INT) {
*va_arg(ap, LONGEST *)=s->u.integer; *va_arg(ap, LONGEST *)=s->u.integer;
break; break;
#ifdef AUTO_BIGNUM
} else if (!is_bignum_object_in_svalue(s) || } else if (!is_bignum_object_in_svalue(s) ||
!int64_from_bignum(va_arg(ap, LONGEST *), s->u.object)) { !int64_from_bignum(va_arg(ap, LONGEST *), s->u.object)) {
return ret; return ret;
#endif
} }
break; break;
case 's': case 's':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment