Changeset 71
- Timestamp:
- Jul 20, 2009 4:25:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
caPython/branches/newPointers/ca_internal_functions.c
r39 r71 258 258 break; 259 259 case DBR_CHAR: 260 d = Py_BuildValue("b", ( int)pBuf->charval);260 d = Py_BuildValue("b", (char)pBuf->charval); 261 261 break; 262 262 /* case DBR_SHORT: = DBR_INT */ … … 286 286 /* case DBR_STRING: No arrays of strings in EPICS*/ 287 287 case DBR_CHAR: 288 pyVal = Py_BuildValue("b", ( int)*(&(pBuf->charval) + i));288 pyVal = Py_BuildValue("b", (char)*(&(pBuf->charval) + i)); 289 289 break; 290 290 /* case DBR_SHORT: = DBR_INT */ … … 309 309 /*d = Py_BuildValue("{s:O}", PV_VALUE, t);*/ 310 310 d = t; 311 /* Py_XDECREF(t); */ /* dictionary now references the tuple */ 311 /*Py_XINCREF(d); 312 Py_XDECREF(t);*/ /* dictionary now references the tuple */ 313 /*Py_XDECREF(pyVal);*/ 312 314 } /* end else */ 313 315 return d; … … 1115 1117 s = unpackPlainGet(pBuf, event_args.type, event_args.count); 1116 1118 d = Py_BuildValue( "{s:O}", PV_VALUE, s); 1119 Py_XDECREF(s); 1117 1120 } 1118 1121 else if(dbr_type_is_STS(event_args.type)) { … … 1186 1189 s = unpackPlainGet(pBuf, event_args.type, event_args.count); 1187 1190 d = Py_BuildValue( "{s:O}", PV_VALUE, s); 1191 Py_XDECREF(s); 1188 1192 } 1189 1193 else if(dbr_type_is_STS(event_args.type)) { … … 1203 1207 } 1204 1208 1205 /* Create a swigged pointer to the channel identifier */1209 /* Create a swigged pointer to the channel identifier */ 1206 1210 chidptr = SWIG_NewPointerObj((chid *) &(event_args.chid), 1207 1211 SWIGTYPE_p_chid, 0);
Note: See TracChangeset
for help on using the changeset viewer.