Skip to content

Commit 90aae03

Browse files
mohawk2wlmb
authored andcommitted
r2C and i2C now handle long double both real and complex - PDLPorters#524
1 parent 3781e8d commit 90aae03

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- PDL::IO::Storable now also supports Sereal, JSON::MaybeXS, CBOR::XS (#510,#520) - thanks @shawnlaffan
2020
- add ParamDesc PP key
2121
- fix IO::Pic problem with older IO::GD installed (#522) - thanks @shawnlaffan
22+
- r2C and i2C now handle long double both real and complex (#524) - thanks @wlmb for report
2223

2324
2.098 2025-01-03
2425
- fix Windows build problems

lib/PDL/Ops.pd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ EOF
485485
);
486486

487487
pp_def('r2C',
488-
GenericTypes=>[qw(G C F D)], # last one is default so here = D
488+
GenericTypes=>$AF,
489489
Pars => 'r(); complex [o]c()',
490490
Doc => 'convert real to native complex, with an imaginary part of zero',
491491
PMCode => << 'EOF',
@@ -500,7 +500,7 @@ EOF
500500
);
501501

502502
pp_def('i2C',
503-
GenericTypes=>[qw(G C F D)], # last one is default so here = D
503+
GenericTypes=>$AF,
504504
Pars => 'i(); complex [o]c()',
505505
Doc => 'convert imaginary to native complex, with a real part of zero',
506506
PMCode => << 'EOF',

0 commit comments

Comments
 (0)