avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] [bug #27243] malloc: small error in comment


From: Stefan Ernst
Subject: [avr-libc-dev] [bug #27243] malloc: small error in comment
Date: Thu, 13 Aug 2009 13:51:46 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13 (.NET CLR 3.5.30729)

URL:
  <http://savannah.nongnu.org/bugs/?27243>

                 Summary: malloc: small error in comment
                 Project: AVR C Runtime Library
            Submitted by: sternst
            Submitted on: Do 13 Aug 2009 13:51:45 GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.*
           Fixed Release: None

    _______________________________________________________

Details:


        /*
         * First, walk the free list and try finding a chunk that
         * would match exactly.  If we found one, we are done.  While
         * walking, note down the size of the largest chunk we found
         * that would still fit the request -- we need it for step 2.
         *
         */
         ...
                        if (s == 0 || fp1->sz < s)
                                s = fp1->sz;


Shouldn't the "largest" actually be a "smallest" (due to the code)?




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27243>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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