From 3a0edbff75594c9804a6e1ce5b98a23c838f3da8 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 5 Jun 2004 11:50:04 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@3096 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/stdfunc.c | 3 +++ 1 file changed, 3 insertions(+) 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"); -- 2.39.5