Mercurial > audlegacy-plugins
changeset 1176:44d28af95a23 trunk
[svn] - i forgot to commit something here
author | nenolod |
---|---|
date | Fri, 08 Jun 2007 10:58:23 -0700 |
parents | 7ae024f5d91b |
children | a7c98f237b03 |
files | ChangeLog src/paranormal/libcalc/function.c |
diffstat | 2 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Jun 08 10:56:12 2007 -0700 +++ b/ChangeLog Fri Jun 08 10:58:23 2007 -0700 @@ -1,3 +1,12 @@ +2007-06-08 17:56:12 +0000 William Pitcock <nenolod@sacredspiral.co.uk> + revision [2544] + - libcalc (paranormal virtual evaluation machine): add rand() instruction, global registers (global_reg0-reg99). + + trunk/src/paranormal/libcalc/dict.c | 64 +++++++++++++++++++++++--------- + trunk/src/paranormal/libcalc/function.c | 5 ++ + 2 files changed, 52 insertions(+), 17 deletions(-) + + 2007-06-08 15:51:30 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [2542] - remove unneeded externs
--- a/src/paranormal/libcalc/function.c Fri Jun 08 10:56:12 2007 -0700 +++ b/src/paranormal/libcalc/function.c Fri Jun 08 10:58:23 2007 -0700 @@ -74,7 +74,7 @@ } static double f_rand (ex_stack *stack) { - return rand() % pop (stack); + return rand() % (int) pop(stack); } /* */ @@ -88,7 +88,7 @@ { "atan", f_atan }, { "log", f_log }, { "if", f_if }, - { "div", f_div } + { "div", f_div }, { "rand", f_rand } };