Commits

arkdro committed d4e2252

fix in bias range

Comments (0)

Files changed (1)

erlang/src/c_server.erl

     {ok, State}.
 
 %-------------------------------------------------------------------
-bias_number({Sign, Mant, Exp}) when Mant >= (2 bsl 30) and Mant < (2 bsl 31) ->
+bias_number({Sign, Mant, Exp}) when Mant >= (2 bsl 29) andalso Mant < (2 bsl 30) ->
     %% this is necessary as ocaml Int32.to_int on 32-bit platform
     %% behaves as Int31, e.g. truncates highest bit
     {Sign, Mant * 10000000000, Exp - 10};