Skip to content

Commit c3c3993

Browse files
committed
errwarn.cc: Clarify complex comparison warning message (bug #67257).
* errwarn.cc (warn_complex_cmp): Modify warning message to indicate that Matlab does not compare the co.plex part of complex numbers. * NEWS.10.md: Note warnign message clarification.
1 parent 909d654 commit c3c3993

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

etc/NEWS.10.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ Summary of bugs fixed for version 10.2.0 (2025-05-29):
4040
- Avoid parse error for empty lines in debug mode (bug #67108).
4141
- Check if effective SOVERSION is exported from .mex file libraries
4242
(bug #67163).
43+
- Clarify the `"Octave:language-extension" warning message for comparing
44+
complex numbers that the compatibility difference is that Octave considers
45+
the complex part of the number (bug #67257).
4346

4447
### GUI
4548

libinterp/corefcn/errwarn.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ void
303303
warn_complex_cmp ()
304304
{
305305
warning_with_id ("Octave:language-extension",
306-
"comparing complex numbers is not supported in Matlab");
306+
"comparing the complex part of complex numbers is not"
307+
" supported in Matlab");
307308
}
308309

309310
void

0 commit comments

Comments
 (0)