From: cuz Date: Sat, 5 Jun 2004 11:50:04 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~736 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a0edbff75594c9804a6e1ce5b98a23c838f3da8;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@3096 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/stdfunc.c b/src/cc65/stdfunc.c index 7ba4e4bbd..820f4d75c 100644 --- a/src/cc65/stdfunc.c +++ b/src/cc65/stdfunc.c @@ -1016,6 +1016,9 @@ static void StdFunc_strlen (FuncDesc* F attribute ((unused)), ExprDesc* Expr) */ } else if (CodeSizeFactor > 400 && IS_Get (&InlineStdFuncs)) { + /* Load the expression into the primary */ + ExprLoad (CF_NONE, &Arg); + /* Inline the function */ L = GetLocalLabel (); AddCodeLine ("sta ptr1");