Skip to content

Commit

Permalink
Fix hex conversion - #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Santeri committed Aug 31, 2020
1 parent 0421483 commit db524a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hilbert-geohash",
"version": "0.0.1",
"version": "0.0.4",
"description": "Node.js implementation of Hilbert-curve based geohashing.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type Base = "Base64" | "Base16" | "Base4";
const IntConversion = {
// https://stackoverflow.com/questions/6213227/fastest-way-to-convert-a-number-to-radix-64-in-javascript
Base64: "0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",
Base16: "0123456789ABCDEF",
Base16: "0123456789abcdef",
Base4: "0123",
fromNumber: function (number: bigint, base: BaseNumber) {
let residual = number;
Expand Down

0 comments on commit db524a9

Please sign in to comment.