diff --git a/src/cyclotom.c b/src/cyclotom.c index 3460f5c66d..a990db6cc6 100644 --- a/src/cyclotom.c +++ b/src/cyclotom.c @@ -688,7 +688,9 @@ Obj Cyclotomic ( res[0] = cof; else { CHANGED_BAG( ResultCyc ); - res[0] = DIFF( INTOBJ_INT(0), cof ); + Obj negcof = DIFF( INTOBJ_INT(0), cof ); + res = BASE_PTR_PLIST(ResultCyc); + res[0] = negcof; } n = 1; }