Fix typo in PdtVariableMemory.
This commit is contained in:
@@ -123,7 +123,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="pc">The item count of the array.</param>
|
/// <param name="pc">The item count of the array.</param>
|
||||||
/// <exception cref="InvalidCastException">The span does not represent an array.</exception>
|
/// <exception cref="InvalidCastException">The span does not represent an array.</exception>
|
||||||
public void GetArraySuffix(out int arrtype, out int pc) {
|
public void GetArraySuffix(out int arrtype, out int pc) {
|
||||||
if (Type != PdtInternalType.Array && Type != PdtInternalType.Array)
|
if (Type != PdtInternalType.Vector && Type != PdtInternalType.Array)
|
||||||
throw new InvalidCastException("Not an array or vector");
|
throw new InvalidCastException("Not an array or vector");
|
||||||
arrtype = *(int*)(_ptr + Length - sizeof(int));
|
arrtype = *(int*)(_ptr + Length - sizeof(int));
|
||||||
if (Type == PdtInternalType.Array) pc = *(int*)(_ptr + Length - 2 * sizeof(int));
|
if (Type == PdtInternalType.Array) pc = *(int*)(_ptr + Length - 2 * sizeof(int));
|
||||||
|
Reference in New Issue
Block a user