Switch to unified view
a/src/utils/circache.cpp | b/src/utils/circache.cpp | ||
---|---|---|---|
... |
... |
||
1115 | cp = malloc(min * sz); |
1115 | cp = malloc(min * sz); |
1116 | *np = cp ? min : 0; |
1116 | *np = cp ? min : 0; |
1117 | return cp; |
1117 | return cp; |
1118 | } |
1118 | } |
1119 | 1119 | ||
1120 | int inc = (*np > maxinc) ? : *np; |
1120 | int inc = (*np > maxinc) ? maxinc : *np;
|
1121 | if ((cp = realloc(cp, (*np + inc) * sz)) != 0) |
1121 | if ((cp = realloc(cp, (*np + inc) * sz)) != 0) |
1122 | *np += inc; |
1122 | *np += inc; |
1123 | return cp; |
1123 | return cp; |
1124 | } |
1124 | } |
1125 | 1125 |