Skip to content

Commit

Permalink
Merge pull request #23 from Hoops/fix-boolean-type
Browse files Browse the repository at this point in the history
Fix Boolean datatype
  • Loading branch information
anjia0532 authored Mar 30, 2020
2 parents 30a7466 + 8778d1c commit 4ef2a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resty/maxminddb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ local function _dump_entry_data_list(entry_data_list,status)
elseif data_type == MMDB_DATA_TYPE_UINT32 then
val = entry_data_item.uint32
elseif data_type == MMDB_DATA_TYPE_BOOLEAN then
val = entry_data_item.boolean == 1
val = entry_data_item.boolean
elseif data_type == MMDB_DATA_TYPE_UINT64 then
val = entry_data_item.uint64
elseif data_type == MMDB_DATA_TYPE_INT32 then
Expand Down

0 comments on commit 4ef2a27

Please sign in to comment.