gnuastro-devel
[Top][All Lists]
Advanced

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

[gnuastro-devel] [bug #48650] Double assing value to the same variable i


From: Vladimir Markelov
Subject: [gnuastro-devel] [bug #48650] Double assing value to the same variable instead of two different variables
Date: Thu, 28 Jul 2016 03:48:26 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

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

                 Summary: Double assing value to the same variable instead of
two different variables
                 Project: GNU Astronomy Utilities
            Submitted by: vvm
            Submitted on: Wed 27 Jul 2016 08:48:24 PM PDT
                Category: ConvertType
                Severity: 3 - Normal
              Item Group: Source code
                  Status: None
                 Privacy: Public
             Assigned to: vvm
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

src/convertt/convertt.c

Comment says 'Change the minimum and maximum if desired...' but the code block
looks:
if(p->fluxlow!=p->fluxhigh)
    {
      if(p->flminbyte) max=p->fluxlow;
      if(p->fhmaxbyte) max=p->fluxhigh;
}

It seems the first assignment should be:
if(p->flminbyte) min = p->fluxlow;




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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