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

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

[Octave-bug-tracker] [bug #44162] prepad issues warnings when prepadding


From: anonymous
Subject: [Octave-bug-tracker] [bug #44162] prepad issues warnings when prepadding strings
Date: Mon, 02 Feb 2015 20:42:31 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.4.0

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

                 Summary: prepad issues warnings when prepadding strings
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mo 02 Feb 2015 20:42:29 UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Oliver Heimlich
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The prepad function creates a warning when the first parameter is a string.
The postpad function creates no such warning. There was no warning in 3.8.2.


octave:1> prepad ("Hello World", 15, "!")
warning: implicit conversion from numeric to char
warning: called from
    prepad at line 83 column 7
ans = !!!!Hello World




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mo 02 Feb 2015 20:42:29 UTC  Name: prepad-string-warning.patch  Size:
339B   By: None
This patch copies postpad's behaviour in prepad and disables the warning
<http://savannah.gnu.org/bugs/download.php?file_id=32976>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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