This commit is contained in:
Michael Davidsaver
2013-03-30 20:22:20 -04:00
parent 05e1346c8a
commit 0be6dc6295
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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);