Skip to content

Commit 0818d9b

Browse files
author
Jill Grant
authored
Update docs/code-quality/c26839.md
Acrolinx fix
1 parent 6e27d70 commit 0818d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/code-quality/c26839.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int* CreateIntArray(int size)
2424
}
2525
```
2626
27-
The expression `new int[size]`, `size` is signed. The compiler converts the signed value to an unsigned value to calculate how many bytes to be allocate for the array. When `size` is negative, the result of that calculation may overflow or have unexpected results when passed to `new`.
27+
The expression `new int[size]`, `size` is signed. The compiler converts the signed value to an unsigned value to calculate how many bytes to be allocated for the array. When `size` is negative, the result of that calculation may overflow or have unexpected results when passed to `new`.
2828
2929
This check is the same as [`C26838`](c26838.md), but applies only to `new T[]`.
3030

0 commit comments

Comments
 (0)