]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Incompatible types for 64-bit arch fixed. Sergey
authorhadaq <hadaq>
Fri, 16 Apr 2010 15:00:32 +0000 (15:00 +0000)
committerhadaq <hadaq>
Fri, 16 Apr 2010 15:00:32 +0000 (15:00 +0000)
ebctrl/ioc/ebctrlApp/src/genSubRecord.c

index 4b5583c22e217ae55e95a51137e269dc148e7f82..23768b6e8a9992fc75c23f775c6b47fd119e334d 100755 (executable)
@@ -130,8 +130,8 @@ static long init_record( genSubRecord *pgsub, int pass )
   unsigned short *typptr;
   void           **valptr;
   void           **ovlptr;
-  unsigned long  *nelptr;
-  unsigned long  *totptr;
+  epicsUInt32    *nelptr;
+  epicsUInt32    *totptr;
   unsigned long  num;
   struct link    *plinkin;
   struct link    *plinkout;
@@ -187,6 +187,7 @@ static long init_record( genSubRecord *pgsub, int pass )
             num = (*nelptr)*(*totptr);
             if( num > MAX_ARRAY_SIZE )
             {
+             printf("1\n");
               printf("Link %s - Array too large! %ld Bytes\n", fldnames[i], num);
               status = S_db_errArg;
             }
@@ -210,6 +211,7 @@ static long init_record( genSubRecord *pgsub, int pass )
             num = (*nelptr)*MAX_STRING_SIZE;
             if( num > MAX_ARRAY_SIZE )
             {
+             printf("2\n");
               printf("Link %s - Array too large! %ld Bytes\n", fldnames[i], num);
               status = S_db_errArg;
             }
@@ -231,6 +233,7 @@ static long init_record( genSubRecord *pgsub, int pass )
             num = (*nelptr)*sizeofTypes[*typptr];
             if( num > MAX_ARRAY_SIZE )
             {
+             printf("3\n");
               printf("Link %s - Array too large! %ld Bytes\n", fldnames[i], num);
               status = S_db_errArg;
             }
@@ -436,7 +439,7 @@ static long process( genSubRecord *pgsub )
   struct link    *plinkin;
   struct link    *plinkout;
   unsigned short *typptr;
-  unsigned long  *nelptr;
+  epicsUInt32    *nelptr;
   long           nRequest;
   long           options;
   void           **valptr;
@@ -589,7 +592,7 @@ static void monitor( genSubRecord *pgsub, int reset )
 {
   int            i;
   unsigned short monitor_mask;
-  unsigned long  *totptr;
+  epicsUInt32    *totptr;
   void           **valptr;
   void           **ovlptr;