From ca715fdd6b4550ac86e96547df29ec24e3fee84f Mon Sep 17 00:00:00 2001 From: Yasuyuki Tanaka Date: Tue, 6 Sep 2016 15:14:10 +0200 Subject: [PATCH] Use appropriate types for "value" of setInt{16,32,64}ValueOf() --- .../java/org/contikios/cooja/mote/memory/VarMemory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/cooja/java/org/contikios/cooja/mote/memory/VarMemory.java b/tools/cooja/java/org/contikios/cooja/mote/memory/VarMemory.java index 65cff9af7..4e774c8f4 100644 --- a/tools/cooja/java/org/contikios/cooja/mote/memory/VarMemory.java +++ b/tools/cooja/java/org/contikios/cooja/mote/memory/VarMemory.java @@ -263,7 +263,7 @@ public class VarMemory extends Memory { * @param varName Variable name * @param value 16 bit integer value to write */ - public void setInt16ValueOf(String varName, byte value) + public void setInt16ValueOf(String varName, short value) throws UnknownVariableException { setInt16ValueOf(getVariable(varName).addr, value); } @@ -274,7 +274,7 @@ public class VarMemory extends Memory { * @param varName Variable name * @param value 32 bit integer value to write */ - public void setInt32ValueOf(String varName, byte value) + public void setInt32ValueOf(String varName, int value) throws UnknownVariableException { setInt32ValueOf(getVariable(varName).addr, value); } @@ -285,7 +285,7 @@ public class VarMemory extends Memory { * @param varName Variable name * @param value 64 bit integer value to write */ - public void setInt64ValueOf(String varName, byte value) + public void setInt64ValueOf(String varName, long value) throws UnknownVariableException { setInt64ValueOf(getVariable(varName).addr, value); }