1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Only take a byte.

This commit is contained in:
Alain Magloire 2002-11-28 23:09:44 +00:00
parent 220d22f82b
commit 50d7ae7e64

View file

@ -166,7 +166,7 @@ public class MemoryBlock extends CObject implements ICDIMemoryBlock {
MISession mi = getCTarget().getCSession().getMISession();
CommandFactory factory = mi.getCommandFactory();
for (int i = 0; i < bytes.length; i++) {
long l = new Byte(bytes[i]).longValue();
long l = new Byte(bytes[i]).longValue() & 0xff;
String value = "0x" + Long.toHexString(l);
MIDataWriteMemory mw = factory.createMIDataWriteMemory(offset + i,
expression, MIFormat.HEXADECIMAL, 1, value);