Skip to content

Commit

Permalink
Fix #158: premature widening of bitset array.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondavies committed Aug 12, 2015
1 parent c8766a2 commit 0be70ae
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crossfilter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(function(exports){
crossfilter.version = "1.3.11";
crossfilter.version = "1.3.12";
function crossfilter_identity(d) {
return d;
}
Expand Down Expand Up @@ -631,7 +631,7 @@ function crossfilter() {
// Incorporate any existing data into this dimension, and make sure that the
// filter bitset is wide enough to handle the new dimension.
m |= one;
if (M >= 32 ? !one : m & (1 << M) - 1) {
if (M >= 32 ? !one : m & -(1 << M)) {
filters = crossfilter_arrayWiden(filters, M <<= 1);
}
preAdd(data, 0, n);
Expand Down
2 changes: 1 addition & 1 deletion crossfilter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crossfilter",
"version": "1.3.11",
"version": "1.3.12",
"description": "Fast multidimensional filtering for coordinated views.",
"keywords": [
"square",
Expand Down Expand Up @@ -30,7 +30,7 @@
"url": "http://github.com/square/crossfilter.git"
},
"devDependencies": {
"d3": "3.3",
"d3": "3",
"vows": "0.7.0",
"uglify-js": "2.4.0"
},
Expand Down
Loading

0 comments on commit 0be70ae

Please sign in to comment.