From 7ccc3ab82dd15bbec14804f93a8f66d73485ac30 Mon Sep 17 00:00:00 2001 From: Michael Skoufis Date: Wed, 14 Sep 2022 18:22:39 -0700 Subject: [PATCH] Modify pointer type in example to match options from epicsTypes.h --- modules/database/src/std/rec/aSubRecord.dbd.pod | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/database/src/std/rec/aSubRecord.dbd.pod b/modules/database/src/std/rec/aSubRecord.dbd.pod index a91adbe14..b03073f2c 100644 --- a/modules/database/src/std/rec/aSubRecord.dbd.pod +++ b/modules/database/src/std/rec/aSubRecord.dbd.pod @@ -2353,10 +2353,12 @@ value, you would either delete the NOA specification, or specify it as "1". The associated subroutine code that uses the A field might look like this: static long my_asub_routine(aSubRecord *prec) { - long i, *a; + long i; + epicsInt32 *a; + double sum=0; ... - a = (long *)prec->a; + a = (epicsInt32 *)prec->a; for (i=0; inoa; i++) { sum += a[i]; }