diff options
-rw-r--r-- | Tools/CodeGen/CodeGenCactus.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/CodeGen/CodeGenCactus.m b/Tools/CodeGen/CodeGenCactus.m index 83d7e3c..2e73554 100644 --- a/Tools/CodeGen/CodeGenCactus.m +++ b/Tools/CodeGen/CodeGenCactus.m @@ -822,8 +822,8 @@ DefFn[ replacement via the preprocessor for C, so we do it here *) (* Note: Mathematica simplifies Max[xx_] -> xx automatically *) - rhs = rhs //. Max[xx_, yy__] -> fmax[xx, Max[yy]]; - rhs = rhs //. Min[xx_, yy__] -> fmin[xx, Min[yy]]; + rhs = rhs //. Max[xx_, yy__] :> fmax[xx, Max[yy]]; + rhs = rhs //. Min[xx_, yy__] :> fmin[xx, Min[yy]]; rhs = rhs //. Abs[x_] -> fabs[x]; rhs = rhs //. Sign[x_] -> isgn[x]; rhs = rhs //. IntAbs[x_] -> abs[x]; |