leaningtech-dev team mailing list archive
-
leaningtech-dev team
-
Mailing list archive
-
Message #00254
[Bug 1393017] Re: error:Field not supported in union.
I know how to fix the code.
but it is hard to find them out (not all code wrote by myself).
in game, we usually use static cast , and when using
socket(webSocket),all data will be deal with char[] ,and convert to int
or float.
such as
char* _socket_buffer;
short a = *((short*)(_socket_buffer)); _socket_buffer+=2;
float b = *((float *)(_socket_buffer)); _socket_buffer+=4;
int c = *((int*)(_socket_buffer)); _socket_buffer+=4;
i know there is no float supported in javascript; I think the compiler could decode the float in bits (IEEE754),and convert it to double. Is it difficult to implament?
--
You received this bug notification because you are a member of
Leaningtech Team, which is subscribed to Cheerp.
https://bugs.launchpad.net/bugs/1393017
Title:
error:Field not supported in union.
Status in Cheerp: C++ for the Web:
Invalid
Bug description:
is the error means, cheerp does not support union?
To manage notifications about this bug go to:
https://bugs.launchpad.net/cheerp/+bug/1393017/+subscriptions
References