Commit 0d605b2d authored by Claes Sjofors's avatar Claes Sjofors

Display of remtrans buffers didn't show 'short int'

parent 0cf9d9ce
......@@ -494,17 +494,30 @@ static int add_element( t_ctx ctx,
strcpy( line_elem[i-1], line_elem[i]);
nr--;
}
if ( unsign)
if ( unsign) {
#if defined OS_LINUX && defined HW_X86_64
type = pwr_eType_UInt64;
size = sizeof(pwr_tInt64);
#else
type = pwr_eType_UInt32;
else
size = sizeof(pwr_tInt32);
#endif
}
else {
#if defined OS_LINUX && defined HW_X86_64
type = pwr_eType_Int64;
size = sizeof(pwr_tInt64);
#else
type = pwr_eType_Int32;
size = sizeof(pwr_tInt32);
size = sizeof(pwr_tInt32);
#endif
}
}
else if ( strcmp( line_elem[0], "short") == 0)
{
if ( strcmp( line_elem[1], "int") == 0)
{
for ( i = sizeof( line_elem)/sizeof( line_elem[0]) - 1; i > 0; i-- )
for ( i = 1; i < (int)(sizeof( line_elem)/sizeof( line_elem[0])); i++)
strcpy( line_elem[i-1], line_elem[i]);
nr--;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment