Hi JCL,

I just noticed the following behavior:

Code:
#include <acknex.h>

short test;
short array[20];

typedef struct TESTSTRUCT
{
	short array[20];
}TESTSTRUCT;

TESTSTRUCT teststruct;

void main()
{
	error(str_for_num( NULL, sizeof(test) ) );			// 2 -> OK
	error(str_for_num( NULL, sizeof(array) ) );			// 4 -> NOK
	error(str_for_num( NULL, sizeof(teststruct) ) );	// 40 -> OK
}



The seconds sizeof() statemant should return 40. Or am I wrong?


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version