fix: Add bool encoding

This commit is contained in:
Yaroslav Rogov 2021-08-04 15:53:02 +07:00
parent fdfdcadd5b
commit 030030b3fe
No known key found for this signature in database
GPG Key ID: 5159F2A85653816B

View File

@ -85,6 +85,8 @@ to_thrift_value(i32, V, _NameFun) ->
to_thrift_value(i16, V, _NameFun) ->
V;
to_thrift_value(byte, V, _NameFun) ->
V;
to_thrift_value(bool, V, _NameFun) ->
V.
from_thrift_struct(StructDef, Struct) ->
@ -120,6 +122,8 @@ from_thrift_value(i32, V) ->
from_thrift_value(i16, V) ->
V;
from_thrift_value(byte, V) ->
V;
from_thrift_value(bool, V) ->
V.
identity(V) ->