bugGNU Octave - Bugs: bug #54313, Typecast function

 
 

bug #54313: Typecast function

Submitter:  Arnaud Delorme <arnodelorme>
Submitted:  Sat 14 Jul 2018 10:11:10 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Arnaud Delorme Open/Closed:  * Closed
Release:  * 4.4.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 15 Jul 2018 06:01:05 AM UTC, comment #1: 

Simple enough just to just always transform the second argument of typecast to lowercase before doing the compare.  I did that here https://hg.savannah.gnu.org/hgweb/octave/rev/0fa7312e34bc.

Marked as fixed and closing report.

Rik <rik5>
Group administrator
Sat 14 Jul 2018 10:11:10 PM UTC, original submission:  

Typecast is not functional when entering capital letters in the target type. Matlab is though

This creates an error (not on Matlab though)

typecast(10,'UINT8');

error: typecast: cannot convert to UINT8 class

This is fine

octave:22> typecast(10,'uint8')

Arnaud Delorme <arnodelorme>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by arnodelorme (Submitted the item)
  • -email is unavailable- added by arnodelorme
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-15 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2018-07-14 arnodelorme Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code