Fix #10577 - [std.math] std.math.algebraic.cbrt is not pure (#10670)

This commit is contained in:
Aditya Chincholkar 2025-03-16 04:54:13 +05:30 committed by GitHub
parent 13279b8594
commit 271ae6219d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -256,7 +256,7 @@ real sqrt(real x) @nogc @safe pure nothrow { return core.math.sqrt(x); }
* $(TR $(TD $(PLUSMN)$(INFIN)) $(TD $(PLUSMN)$(INFIN)) $(TD no) ) * $(TR $(TD $(PLUSMN)$(INFIN)) $(TD $(PLUSMN)$(INFIN)) $(TD no) )
* ) * )
*/ */
real cbrt(real x) @trusted nothrow @nogc real cbrt(real x) @trusted pure nothrow @nogc
{ {
version (CRuntime_Microsoft) version (CRuntime_Microsoft)
{ {
@ -273,7 +273,7 @@ real cbrt(real x) @trusted nothrow @nogc
} }
/// ///
@safe unittest @safe pure unittest
{ {
import std.math.operations : feqrel; import std.math.operations : feqrel;