try to make things work on 64 bit systems
src/seq/seq_qry.c
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-branch-2-0/src/seq/seq_qry.c new-branch-2-0/src/seq/seq_qry.c
--- old-branch-2-0/src/seq/seq_qry.c 2022-11-28 23:50:30.846230256 +0100
+++ new-branch-2-0/src/seq/seq_qry.c 2022-11-28 23:50:30.846230256 +0100
@@ -396,11 +396,12 @@
int count, type;
{
int i;
- char *c;
- short *s;
- long *l;
- float *f;
- double *d;
+ pvChar *c;
+ pvShort *s;
+ pvLong *l;
+ pvFloat *f;
+ pvDouble *d;
+ pvString *r;
printf(" Value =");
for (i = 0; i < count; i++)
@@ -408,15 +409,15 @@
switch (type)
{
case pvTypeSTRING:
- c = (char *)pVal;
- for (i = 0; i < count; i++, c += sizeof(pvString))
+ r = (pvString *)pVal;
+ for (i = 0; i < count; i++, r++)
{
- printf(" %s", c);
+ printf(" %s", *r);
}
break;
case pvTypeCHAR:
- c = (char *)pVal;
+ c = (pvChar *)pVal;
for (i = 0; i < count; i++, c++)
{
printf(" %d", *c);
@@ -424,7 +425,7 @@
break;
case pvTypeSHORT:
- s = (short *)pVal;
+ s = (pvShort *)pVal;
for (i = 0; i < count; i++, s++)
{
printf(" %d", *s);
@@ -432,15 +433,15 @@
break;
case pvTypeLONG:
- l = (long *)pVal;
+ l = (pvLong *)pVal;
for (i = 0; i < count; i++, l++)
{
- printf(" %ld", *l);
+ printf(" %d", *l);
}
break;
case pvTypeFLOAT:
- f = (float *)pVal;
+ f = (pvFloat *)pVal;
for (i = 0; i < count; i++, f++)
{
printf(" %g", *f);
@@ -448,7 +449,7 @@
break;
case pvTypeDOUBLE:
- d = (double *)pVal;
+ d = (pvDouble *)pVal;
for (i = 0; i < count; i++, d++)
{
printf(" %g", *d);
patch 41656482809861d993607895eee0b410b4efda3d
Author: ben.franksen@online.de
Date: Wed Apr 6 20:59:29 CEST 2011
* try to make things work on 64 bit system