kopia lustrzana https://github.com/Hamlib/Hamlib
Add 32-bit values to testrigcaps.c
This may still need changes for different compilers with different structure packingpull/518/head
rodzic
4df4820ad9
commit
619e130483
|
@ -14,10 +14,11 @@ int main()
|
||||||
unsigned long offset = p2 - p1;
|
unsigned long offset = p2 - p1;
|
||||||
printf("offset vfo_list=%ld\n", offset);
|
printf("offset vfo_list=%ld\n", offset);
|
||||||
int expected = 13280;
|
int expected = 13280;
|
||||||
if (offset != expected)
|
int expected32 = 10144;
|
||||||
|
if (offset != expected && offset != expected32)
|
||||||
{
|
{
|
||||||
printf("offset of vfo_list has changed!!!\n");
|
printf("offset of vfo_list has changed!!!\n");
|
||||||
printf("was %d, now %lu\n", expected, offset );
|
printf("64-bit was %d, 32-bit was %d, now %lu\n", expected, expected32, offset );
|
||||||
retcode = 1;
|
retcode = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,10 +27,11 @@ int main()
|
||||||
printf("offset power_max=%ld\n", offset);
|
printf("offset power_max=%ld\n", offset);
|
||||||
|
|
||||||
expected = 13696;
|
expected = 13696;
|
||||||
if (offset != expected)
|
expected32 = 10448;
|
||||||
|
if (offset != expected && offset != expected32)
|
||||||
{
|
{
|
||||||
printf("offset of power_max has changed!!!\n");
|
printf("offset of power_max has changed!!!\n");
|
||||||
printf("was %d, now %lu\n", expected, offset );
|
printf("64-bit was %d, 32-bit was %d, now %lu\n", expected, expected32, offset );
|
||||||
retcode = 1;
|
retcode = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue