mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Use appropriate types for "value" of setInt{16,32,64}ValueOf()
This commit is contained in:
parent
406e517d52
commit
ca715fdd6b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user