Skip to content

Commit c69bbf0

Browse files
ivilxwq
andauthored
fix bug: Error in converting 3D array to 1D array (ArrayExtensions.To1DArray) (#442)
* fix bug: Error in converting one-dimensional array to three-dimensional array (ArrayExtensions.To3DArray) * fix bug: Error in converting 3D array to 1D array (ArrayExtensions.To1DArray) --------- Co-authored-by: xwq <wqxu@i-con.cn>
1 parent 265693b commit c69bbf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libplctag/DataTypes/Extensions/ArrayExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static T[] To1DArray<T>(this T[,,] input)
5757
{
5858
for (int j = 0; j <= input.GetUpperBound(1); j++)
5959
{
60-
for (int k = 0; k < input.GetUpperBound(2); k++)
60+
for (int k = 0; k <= input.GetUpperBound(2); k++)
6161
{
6262
result[write++] = input[i, j, k];
6363
}

0 commit comments

Comments
 (0)