structure: Large integer gets detected as double instead of int64
@vivia
Submitted by Vivia Nikolaidou Link to original bug (#764288)
Description
Created attachment 324893
Test case
Running the attached test case gives this output:
Serialized structure measurement, field1=(int)1000000000;
Structure didn't contain an int64 field1
Serialized structure measurement, field1=(double)10000000000;
Structure didn't contain an int64 field1
Why double? There's no decimal point anywhere, shouldn't it be detected as an int64 instead?
PS: I know it's leaky, it's just a small demo.
PS2: Why is there no GST_STRUCTURE_FORMAT ? Now I'm leaking the strings as well as the structures :(
Attachment 324893, "Test case":
serializeme.c