parent
b19010159c
commit
47e9ed6e06
|
@ -195,7 +195,9 @@ def int31(data, platform):
|
||||||
if to_value_type is None or not from_values:
|
if to_value_type is None or not from_values:
|
||||||
continue
|
continue
|
||||||
bits = None
|
bits = None
|
||||||
if to_value_type.type == 'char':
|
if token.valueType.pointer > 0:
|
||||||
|
bits = platform.pointer_bit
|
||||||
|
elif to_value_type.type == 'char':
|
||||||
bits = platform.char_bit
|
bits = platform.char_bit
|
||||||
elif to_value_type.type == 'short':
|
elif to_value_type.type == 'short':
|
||||||
bits = platform.short_bit
|
bits = platform.short_bit
|
||||||
|
|
|
@ -82,6 +82,11 @@ void int31(int x)
|
||||||
unsigned char c;
|
unsigned char c;
|
||||||
c = 256;
|
c = 256;
|
||||||
c = -1;
|
c = -1;
|
||||||
|
|
||||||
|
// issue #10782
|
||||||
|
uint16_t * ptr;
|
||||||
|
uint32_t var = 65536;
|
||||||
|
ptr = (uint16_t *)var;
|
||||||
}
|
}
|
||||||
|
|
||||||
void env33()
|
void env33()
|
||||||
|
|
Loading…
Reference in New Issue