bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] Possible bug in PrintBuffer.cc


From: Elias Mårtenson
Subject: [Bug-apl] Possible bug in PrintBuffer.cc
Date: Tue, 14 Jan 2014 16:34:17 +0800

Another potential bug showing up when I was going through the warning messages:

In PrintBuffer.cc, line 70, the following code is found:

const ShapeItem ec = value.element_count();
   if (ec == 0)   // empty value of any dimension
      {
         const Shape sh = value.get_shape().without_axis(sh.get_rank() - 1);
         if (sh.get_volume() <= 1)   // empty vector
            {

The call to sh.get_rank() refers sh itself before it's initialised. I'm not sure what the intent of this code is, so I don't want to guess how to fix it.

Regards,
Elias

reply via email to

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