int starti = ((uint16)data[i+0] << 8)+data[i+1]; int endi = ((uint16)data[i+2] << 8)+data[i+3];
int starti = ((uint16_t)data[i+0] << 8)+data[i+1]; int endi = ((uint16_t)data[i+2] << 8)+data[i+3];
static void printPort(FieldType type, FieldData* data) {	if (type.length == 0) {		printf("zero-length Port");		return;		}	if (type.length == 2) {		int port = ((uint16)data[0] << 8)+data[1];		printf("%d", port);		return;		}	if ((type.length >= 4) && ((type.length % 4) == 0)) {		int i;		for (i = 0; i < type.length; i+=4) {			int starti = ((uint16)data[i+0] << 8)+data[i+1];			int endi = ((uint16)data[i+2] << 8)+data[i+3];			if (i > 0) printf(",");			if (starti != endi) {				printf("%d:%d", starti, endi);				} else {				printf("%d", starti);				}			} 		return;		}		errorf("Port with length %d unparseable", type.length);	}