From 7d2ab9fd43a51ae93c70a7920baa54c4be472364 Mon Sep 17 00:00:00 2001 From: eletuchy Date: Wed, 27 Feb 2008 19:56:52 +0000 Subject: [PATCH] [thrift] erlang: dialyzer bug: binary protocol double type ... Summary: ... needs to be specified as a float to work, since erlang's binary syntax default is "integer" Reviewed By: cpiro Test Plan: make dialyzer -j Revert Plan: sure git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665529 13f79535-47bb-0310-9956-ffa450edef68 --- lib/erl/src/protocol/tBinaryProtocol.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/erl/src/protocol/tBinaryProtocol.erl b/lib/erl/src/protocol/tBinaryProtocol.erl index cc716846..2155be65 100644 --- a/lib/erl/src/protocol/tBinaryProtocol.erl +++ b/lib/erl/src/protocol/tBinaryProtocol.erl @@ -128,7 +128,7 @@ writeI64(This, I64) when is_integer(I64) -> writeDouble(This, Double) when is_float(Double) -> Trans = oop:get(This, trans), - ?R1(Trans, effectful_write, <>). + ?R1(Trans, effectful_write, <>). writeString(This, Str) when is_list(Str) -> % [char()] or iolist() Trans = oop:get(This, trans), -- 2.17.1