From f2a3c8f736853fd82f8e6e64e85c6227abe985ac Mon Sep 17 00:00:00 2001
From: "Vladimir V. Kisil" <V.Kisilv@leeds.ac.uk>
Date: Thu, 13 Jan 2022 14:27:05 +0000
Subject: [PATCH] Fix a typo in the power::to_polynomial()

It was spotted by Feng Feng.

Signed-off-by: Vladimir V. Kisil <V.Kisilv@leeds.ac.uk>
---
 ginac/normal.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ginac/normal.cpp b/ginac/normal.cpp
index 7c99bed7..3a36944c 100644
--- a/ginac/normal.cpp
+++ b/ginac/normal.cpp
@@ -2688,7 +2688,7 @@ ex power::to_rational(exmap & repl) const
 ex power::to_polynomial(exmap & repl) const
 {
 	if (exponent.info(info_flags::posint))
-		return pow(basis.to_rational(repl), exponent);
+		return pow(basis.to_polynomial(repl), exponent);
 	else if (exponent.info(info_flags::negint))
 	{
 		ex basis_pref = collect_common_factors(basis);
-- 
2.34.1

