Skip to content

Commit

Permalink
use indicies.offset in DictionaryData constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Feb 27, 2018
1 parent e50a8ec commit b0a0c08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,9 @@ export class DictionaryData<T extends DataType> extends BaseData<Dictionary<T>>
public get indices() { return this._indices; }
public get dictionary() { return this._dictionary; }
constructor(type: Dictionary<T>, dictionary: Vector<T>, indices: Data<Int<any>>) {
super(type, indices.length, (indices as any)._nullCount);
super(type, indices.length, indices.offset, (indices as any)._nullCount);
this._indices = indices;
this._dictionary = dictionary;
this.length = this._indices.length;
}
public get nullCount() { return this._indices.nullCount; }
public get nullBitmap() { return this._indices.nullBitmap; }
Expand Down

0 comments on commit b0a0c08

Please sign in to comment.