From: Richard Kreckel Date: Sat, 6 Feb 2016 11:53:14 +0000 (+0100) Subject: Fix a comment. X-Git-Tag: release_1-7-0~7^2~9 X-Git-Url: https://www.ginac.de/ginac.git/tutorial/ginac.git?a=commitdiff_plain;h=63e74fc404d649c69416b2a81ca348bbcfe75400;p=ginac.git Fix a comment. --- diff --git a/ginac/normal.cpp b/ginac/normal.cpp index d7570fd5..81841e0f 100644 --- a/ginac/normal.cpp +++ b/ginac/normal.cpp @@ -297,7 +297,7 @@ static ex multiply_lcm(const ex &e, const numeric &lcm) return dynallocate(v); } else if (is_exactly_a(e)) { if (!is_a(e.op(0))) { - // (b^e)*lcm -> (b*lcm^(1/e))^e if lcm^(1/e) ∈ ℝ (i.e. not a float) + // (b^e)*lcm -> (b*lcm^(1/e))^e if lcm^(1/e) ∈ ℚ (i.e. not a float) // but not for symbolic b, as evaluation would undo this again numeric root_of_lcm = lcm.power(ex_to(e.op(1)).inverse()); if (root_of_lcm.is_rational()) diff --git a/ginac/ptr.h b/ginac/ptr.h index b7736c7c..9d76bfee 100644 --- a/ginac/ptr.h +++ b/ginac/ptr.h @@ -61,7 +61,7 @@ template class ptr { // and makewritable() requires locking. public: - // no default ctor: a ptr is never unbound + // no default ctor: a ptr is never unbound /** Bind ptr to newly created object, start reference counting. */ ptr(T *t) noexcept : p(t) { GINAC_ASSERT(p); p->set_refcount(1); }