File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 4
4
T *src;
5
5
expression n;
6
6
@@
7
- - memcpy(dst, src, n * sizeof(*dst));
7
+ - memcpy(dst, src, (n) * sizeof(*dst));
8
8
+ COPY_ARRAY(dst, src, n);
9
9
10
10
@@
@@ -13,7 +13,7 @@ T *dst;
13
13
T *src;
14
14
expression n;
15
15
@@
16
- - memcpy(dst, src, n * sizeof(*src));
16
+ - memcpy(dst, src, (n) * sizeof(*src));
17
17
+ COPY_ARRAY(dst, src, n);
18
18
19
19
@@
@@ -22,7 +22,7 @@ T *dst;
22
22
T *src;
23
23
expression n;
24
24
@@
25
- - memcpy(dst, src, n * sizeof(T));
25
+ - memcpy(dst, src, (n) * sizeof(T));
26
26
+ COPY_ARRAY(dst, src, n);
27
27
28
28
@@
@@ -47,13 +47,13 @@ type T;
47
47
T *ptr;
48
48
expression n;
49
49
@@
50
- - ptr = xmalloc(n * sizeof(*ptr));
50
+ - ptr = xmalloc((n) * sizeof(*ptr));
51
51
+ ALLOC_ARRAY(ptr, n);
52
52
53
53
@@
54
54
type T;
55
55
T *ptr;
56
56
expression n;
57
57
@@
58
- - ptr = xmalloc(n * sizeof(T));
58
+ - ptr = xmalloc((n) * sizeof(T));
59
59
+ ALLOC_ARRAY(ptr, n);
You can’t perform that action at this time.
0 commit comments