I have this piece of code
#include <stdio.h>
typedef signed long long v2signed_long
__attribute__ ((__vector_size__ (sizeof(signed long long) * 2)));
int main()
{
v2signed_long v = {4611686018427387904LL, -9223372036854775808LL};
printf("%lli, %lli\n", v[0], v[1]);
return 0;
}
Which gives the following warning(The related questions didn't help):
:7:45: warning: integer literal is too large to be represented in
a signed integer type, interpreting as unsigned
[-Wimplicitly-unsigned-literal]
v2signed_long v = {4611686018427387904LL, -9223372036854775808LL};
Is there a way to solve this warning? Thanks!