Skip to content

Commit 8025745

Browse files
committed
Add manual CHANGELOG and release note entries
Multi-type PR (fixed + changed) requires manual changelog management.
1 parent 578e7bf commit 8025745

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.release-notes/fix-frexp-signed-exponent.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.release-notes/next-release.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,17 @@ Shuffle applies to all scheduling modes. For CI environments that run tests sequ
103103

104104
The `style/blank-lines` rule incorrectly counted blank lines inside multi-line docstrings as blank lines between members. A method or field whose docstring contained blank lines (e.g., between paragraphs) would be flagged for having too many blank lines before the next member. The rule now correctly identifies where a docstring ends rather than using only its start line.
105105

106+
## Fix `FloatingPoint.frexp` returning unsigned exponent
107+
108+
`FloatingPoint.frexp` (and its implementations on `F32` and `F64`) returned the exponent as `U32` when C's `frexp` writes a signed `int`. Negative exponents were silently reinterpreted as large positive values.
109+
110+
The return type is now `(A, I32)` instead of `(A, U32)`. If you destructure the result and type the exponent, update it:
111+
112+
```pony
113+
// Before
114+
(let mantissa, let exp: U32) = my_float.frexp()
115+
116+
// After
117+
(let mantissa, let exp: I32) = my_float.frexp()
118+
```
119+

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All notable changes to the Pony compiler and standard library will be documented
1212
- Fix spurious error when assigning to a field on an `as` cast in a try block ([PR #5070](https://github.com/ponylang/ponyc/pull/5070))
1313
- Fix segfault when using Generator.map with PonyCheck shrinking ([PR #5006](https://github.com/ponylang/ponyc/pull/5006))
1414
- Fix pony-lint blank-lines rule false positives on multi-line docstrings ([PR #5109](https://github.com/ponylang/ponyc/pull/5109))
15+
- Fix `FloatingPoint.frexp` returning unsigned exponent ([PR #5113](https://github.com/ponylang/ponyc/pull/5113))
1516

1617
### Added
1718

@@ -21,6 +22,7 @@ All notable changes to the Pony compiler and standard library will be documented
2122

2223
- Remove support for Alpine 3.20 ([PR #5094](https://github.com/ponylang/ponyc/pull/5094))
2324
- Remove docgen pass ([PR #5097](https://github.com/ponylang/ponyc/pull/5097))
25+
- Change `FloatingPoint.frexp` exponent return type from `U32` to `I32` ([PR #5113](https://github.com/ponylang/ponyc/pull/5113))
2426

2527
## [0.62.1] - 2026-03-28
2628

0 commit comments

Comments
 (0)