diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2014-01-12 23:25:39 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2014-01-12 23:25:39 +0000 |
| commit | 5eb9b4815a12cc0dafd07905f7715a7e15a92b41 (patch) | |
| tree | f39f5ae5a40012fa010402611d2b133553c22335 /src/2geom/utils.cpp | |
| parent | LPE: rename function getHelperPaths --> getCanvasIndicators (the function is ... (diff) | |
| download | inkscape-5eb9b4815a12cc0dafd07905f7715a7e15a92b41.tar.gz inkscape-5eb9b4815a12cc0dafd07905f7715a7e15a92b41.zip | |
update 2geom's copy to r2142
(bzr r12921)
Diffstat (limited to 'src/2geom/utils.cpp')
| -rw-r--r-- | src/2geom/utils.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/2geom/utils.cpp b/src/2geom/utils.cpp index a40b7253d..83d93cc87 100644 --- a/src/2geom/utils.cpp +++ b/src/2geom/utils.cpp @@ -37,16 +37,15 @@ namespace Geom { // return a vector that contains all the binomial coefficients of degree n -void binomial_coefficients(std::vector<size_t>& bc, size_t n) +void binomial_coefficients(std::vector<size_t>& bc, std::size_t n) { size_t s = n+1; bc.clear(); bc.resize(s); bc[0] = 1; - size_t k; for (size_t i = 1; i < n; ++i) { - k = i >> 1; + size_t k = i >> 1; if (i & 1u) { bc[k+1] = bc[k] << 1; |
