octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #38956] uint32 doesn't correctly cast some cha


From: anonymous
Subject: [Octave-bug-tracker] [bug #38956] uint32 doesn't correctly cast some characters.
Date: Fri, 10 May 2013 03:30:19 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20121207 Firefox/3.5.16

URL:
  <http://savannah.gnu.org/bugs/?38956>

                 Summary: uint32 doesn't correctly cast some characters.
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 10 May 2013 03:30:18 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Dave Goel
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

This happens for characters > 128. 

octave:122> uint32(char(226))
ans = 0
octave:123> uint32(char(22))
ans = 22


(For comparison, replacing unit32 by double in the above ameliorates the
situation. 
I don't think this problme can be  "explained away" by ascii's limitation to
128, but I could be wrong. This is char, not ascii, and again, double works
whereas uint32 doesn't.)

Thanks.
Dave ("deego")

P.S.: carandraug reports that the bug persists in the devel version.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38956>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]