Changeset bb02129 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:22Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48f09f2f
Parents:
cf3b398
git-author:
Dzejrou <dzejrou@…> (2018-05-01 20:34:52)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
Message:

cpp: fixed some string bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/string.hpp

    rcf3b398 rbb02129  
    716716                if (new_capacity > capacity_)
    717717                    resize_with_copy_(size_, new_capacity);
    718                 else if (new_capacity < capacity)
     718                else if (new_capacity < capacity_)
    719719                    shrink_to_fit(); // Non-binding request, but why not.
    720720            }
     
    723723            {
    724724                if (size_ != capacity_)
    725                     resize_with_copy_(size_);
     725                    resize_with_copy_(size_, capacity_);
    726726            }
    727727
Note: See TracChangeset for help on using the changeset viewer.