From 36008bdeac113223274af6d774ebf4e6c3f9e81e Mon Sep 17 00:00:00 2001 From: catbref Date: Thu, 9 Apr 2020 09:38:48 +0100 Subject: [PATCH] Fix constructing MachineState from creationBytes. Bump to v1.3.2 --- Java/pom.xml | 2 +- Java/src/main/java/org/ciyam/at/MachineState.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Java/pom.xml b/Java/pom.xml index 2113b72..cfd45fb 100644 --- a/Java/pom.xml +++ b/Java/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.ciyam AT - 1.3.1 + 1.3.2 jar true diff --git a/Java/src/main/java/org/ciyam/at/MachineState.java b/Java/src/main/java/org/ciyam/at/MachineState.java index 37a494b..3f12540 100644 --- a/Java/src/main/java/org/ciyam/at/MachineState.java +++ b/Java/src/main/java/org/ciyam/at/MachineState.java @@ -204,7 +204,7 @@ public class MachineState { System.arraycopy(creationBytes, HEADER_LENGTH, this.codeByteBuffer.array(), 0, this.numCodePages * this.constants.CODE_PAGE_SIZE); System.arraycopy(creationBytes, HEADER_LENGTH + this.numCodePages * this.constants.CODE_PAGE_SIZE, this.dataByteBuffer.array(), 0, - this.numDataPages + this.constants.DATA_PAGE_SIZE); + this.numDataPages * this.constants.DATA_PAGE_SIZE); commonFinalConstruction(); }