diff --git a/devsupApp/src/dbdset.c b/devsupApp/src/dbdset.c index 12461d9..35b4bcf 100644 --- a/devsupApp/src/dbdset.c +++ b/devsupApp/src/dbdset.c @@ -252,7 +252,7 @@ static long process_record(dbCommon *prec) { pyDevice *priv = prec->dpvt; PyGILState_STATE pystate; - long pact = prec->pact; + int pact = prec->pact; if(!priv || !priv->support) return 0; diff --git a/devsupApp/src/dbfield.c b/devsupApp/src/dbfield.c index 7fc2a34..7fe0af5 100644 --- a/devsupApp/src/dbfield.c +++ b/devsupApp/src/dbfield.c @@ -78,6 +78,7 @@ static PyObject* pyField_getval(pyField *self) #define OP(FTYPE, CTYPE, FN) case DBF_##FTYPE: return FN(*(CTYPE*)self->addr.pfield) OP(CHAR, epicsInt8, PyInt_FromLong); OP(UCHAR, epicsUInt8, PyInt_FromLong); + OP(ENUM, epicsEnum16, PyInt_FromLong); OP(SHORT, epicsInt16, PyInt_FromLong); OP(USHORT,epicsUInt16, PyInt_FromLong); OP(LONG, epicsInt32, PyInt_FromLong); @@ -105,6 +106,7 @@ static PyObject* pyField_putval(pyField *self, PyObject* args) #define OP(FTYPE, CTYPE, FN) case DBF_##FTYPE: *(CTYPE*)self->addr.pfield = FN(val); break OP(CHAR, epicsInt8, PyInt_AsLong); OP(UCHAR, epicsUInt8, PyInt_AsLong); + OP(ENUM, epicsEnum16, PyInt_AsLong); OP(SHORT, epicsInt16, PyInt_AsLong); OP(USHORT,epicsUInt16, PyInt_AsLong); OP(LONG, epicsInt32, PyInt_AsLong);