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

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

[Octave-bug-tracker] [bug #34147] hex2dec function doesn't work properly


From: anonymous
Subject: [Octave-bug-tracker] [bug #34147] hex2dec function doesn't work properly.
Date: Sat, 27 Aug 2011 09:51:10 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0

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

                 Summary: hex2dec function doesn't work properly.
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 27 Aug 2011 09:51:09 AM UTC
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Diego Borro
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Depending on the argument, hex2dec function doesn't work properly. For
example, if we put


hex2dec('1B')


The result is 27 (correct).

But if we use cells for introducing more than one value like in:


hex2dec({'1B' '2C'})


The result is an error:

error: binary operator `==' not implemented for `cell' by `scalar' operations
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error: called from:
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\strings\strjust.m at
line 51, column 5
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\strings\base2dec.m at
line 74, column 3
error:   C:\Octave\3.2.4_gcc-4.4.0\share\octave\3.2.4\m\strings\hex2dec.m at
line 47, column 7







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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