aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2021-01-06 09:40:23 +0300
committerAleksey Veresov <aleksey@veresov.pro>2021-01-06 09:40:23 +0300
commitd0b081afd74ef291f36db208eaf9fcd9c109b163 (patch)
tree88c2571345d35b559b95f27742520c9655911aac
parent15fe079a45b48c29db2bed85d706fb1c976b1953 (diff)
downloadcsx-d0b081afd74ef291f36db208eaf9fcd9c109b163.tar
csx-d0b081afd74ef291f36db208eaf9fcd9c109b163.tar.xz
csx-d0b081afd74ef291f36db208eaf9fcd9c109b163.zip
Fix of neg.
-rw-r--r--src/csx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csx.c b/src/csx.c
index f114114..7836793 100644
--- a/src/csx.c
+++ b/src/csx.c
@@ -318,7 +318,7 @@ static void *base_prod(void *arg)
static void *base_neg(void *arg)
{
arg = run_each(arg);
- return csx_int(-*(int *)head(head(arg)));
+ return csx_int(-*(int *)head(arg));
}
static void *base_inv(void *arg)