From 7c89ac93251cc193a94d6ce247595cf998ef661f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Thu, 31 Dec 1998 17:10:28 -0800 Subject: [PATCH] cast now only handles decimal numbers Rev: src/opcodes.c:1.34 --- src/opcodes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opcodes.c b/src/opcodes.c index 7386ca3e83..ce381ac022 100644 --- a/src/opcodes.c +++ b/src/opcodes.c @@ -22,7 +22,7 @@ #include "builtin_functions.h" #include "module_support.h" -RCSID("$Id: opcodes.c,v 1.33 1998/12/16 07:49:37 hubbe Exp $"); +RCSID("$Id: opcodes.c,v 1.34 1999/01/01 01:10:28 hubbe Exp $"); void index_no_free(struct svalue *to,struct svalue *what,struct svalue *ind) { @@ -157,7 +157,7 @@ void o_cast(struct pike_string *type, INT32 run_time_type) break; case T_STRING: - i=STRTOL(sp[-1].u.string->str,0,0); + i=STRTOL(sp[-1].u.string->str,0,10); free_string(sp[-1].u.string); break; -- GitLab