diff --git a/shard.yml b/shard.yml index 9e8efe1..f40a8b2 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: bindata -version: 1.1.5 +version: 1.1.6 development_dependencies: ameba: diff --git a/src/bindata.cr b/src/bindata.cr index 6c1cb52..c409df5 100644 --- a/src/bindata.cr +++ b/src/bindata.cr @@ -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)