Commit 310330b
Benjamin Moody
wr_dat_file: do not modify contents of the d_signal argument.
When writing to an output file, it may be necessary to transform the
data in various ways, which is often most efficient to do by modifying
the array in-place.
However, for API cleanliness, the wr_dat_file function shouldn't
modify its argument. Instead, the function itself should make a copy
of the array if necessary. (In the future, we may ultimately be able
to avoid a copy if the array is already in the correct format.)1 parent b1c3284 commit 310330b
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
957 | | - | |
958 | | - | |
| 957 | + | |
959 | 958 | | |
960 | 959 | | |
961 | 960 | | |
| |||
2301 | 2300 | | |
2302 | 2301 | | |
2303 | 2302 | | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
2304 | 2306 | | |
2305 | 2307 | | |
2306 | 2308 | | |
| |||
0 commit comments