diff options
author | 2016-05-31 23:49:55 +0200 | |
---|---|---|
committer | 2016-06-07 21:44:15 +0200 | |
commit | 81880659d23b36598f498e32f24fd6a4cecbd80b (patch) | |
tree | d7cd226d8335ba06fab273b1616231881ecfe766 /src/lib/netlist/plib/palloc.cpp | |
parent | 3d3f5761f0b0419581762f72ea0984e047d3e55c (diff) |
- More code cleanup.
- Dead code removal and minor refactoring.
- Simplify. Align naming with stl. Fix somed pedantic warnings.
- More STL compatability.
- Remove ATTR_HOT and ATTR_COLD. Refactored netlist_time.
- Fix long standing workaround which would ignore policy of change-only"
propagation.
- Rewrote for loops to use auto : semantics.
- Truthtable cleanup. (nw)
- Get rid of nl_math. Remove nl_util.h and moved contents to
plib/putil.h.
- Fix standalone build. Refactor ptypes.h.
[Couriersud]
Diffstat (limited to 'src/lib/netlist/plib/palloc.cpp')
-rw-r--r-- | src/lib/netlist/plib/palloc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/netlist/plib/palloc.cpp b/src/lib/netlist/plib/palloc.cpp index f58da749792..b6d0f37b7ef 100644 --- a/src/lib/netlist/plib/palloc.cpp +++ b/src/lib/netlist/plib/palloc.cpp @@ -52,7 +52,7 @@ int mempool::new_block() void *mempool::alloc(size_t size) { size_t rs = (size + sizeof(info) + m_min_align - 1) & ~(m_min_align - 1); - for (int bn=0; bn < m_blocks.size(); bn++) + for (size_t bn=0; bn < m_blocks.size(); bn++) { auto &b = m_blocks[bn]; if (b.m_free > rs) |