polyout uses depreciated com2str Patch

Ben Abbott bpabbott at mac.com
Sat Jan 31 12:16:39 CST 2009


On Jan 31, 2009, at 4:24 AM, Thomas D. Dean wrote:

> --------
> Bug report for Octave 3.0.3 configured for i686-pc-linux-gnu
>
> Description:
> -----------
>
>  * polyout uses depreciated com2str
>
> Repeat-By:
> ---------
>
>  * polyout(P)
>
> Fix:
> ---
> 2009-01-31 Thomas D. Dean <tomdean at speakeasy.org>
>
>  * Replaced depreciated com2str() in polyout.m
>
>> diff -cp polyout.m.orig polyout.m
> *** polyout.m.orig	2009-01-31 01:17:25.000000000 -0800
> --- polyout.m	2009-01-31 01:18:02.000000000 -0800
> *************** endfunction
> *** 89,97 ****
>  function str = coeff(c)
>    if (imag (c))
>      if (real (c))
> !       str = sprintf ("(%s)", com2str(c));
>      else
> !       str = com2str(c);
>      endif
>    else
>      str = num2str(c);
> --- 89,97 ----
>  function str = coeff(c)
>    if (imag (c))
>      if (real (c))
> !       str = sprintf ("(%s)", num2str(c));
>      else
> !       str = num2str(c);
>      endif
>    else
>      str = num2str(c);

Changeset attached, and attributed to Dean.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-polyout.patch
Type: application/octet-stream
Size: 1580 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090131/595a2b16/attachment.obj 
-------------- next part --------------







More information about the Bug-octave mailing list