Commit 8125cbd
committed
Fix issue #78 by ensuring _read_value() returns true copy
It turns out that the value returned by record.read_val() can be a shared
reference to the value in the underlying EPICS record. This means that
this value can change unexpectedly!
The fix is simply to apply the same logic as already done for string
records, and take a true copy instead.1 parent f34bde6 commit 8125cbd
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
270 | 273 | | |
271 | 274 | | |
272 | 275 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | 276 | | |
280 | 277 | | |
281 | 278 | | |
| |||
0 commit comments