Skip to content

Commit

Permalink
feat(bindata): add support for floats
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Nov 12, 2019
1 parent c9eedff commit 71d13cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bindata
version: 1.1.5
version: 1.1.6

development_dependencies:
ameba:
Expand Down
2 changes: 1 addition & 1 deletion src/bindata.cr
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class BinData
# 4: length
# 5: value
# 6: encoding
{% for vartype in ["UInt8", "Int8", "UInt16", "Int16", "UInt32", "Int32", "UInt64", "Int64", "UInt128", "Int128"] %}
{% for vartype in ["UInt8", "Int8", "UInt16", "Int16", "UInt32", "Int32", "UInt64", "Int64", "UInt128", "Int128", "Float32", "Float64"] %}
{% name = vartype.downcase.id %}

macro {{name}}(name, onlyif = nil, value = nil, default = nil)
Expand Down

0 comments on commit 71d13cb

Please sign in to comment.