[Tinyos-commits] CVS: tinyos-1.x/tools/java/net/tinyos/message Message.java, 1.6, 1.7

David Gay idgay at users.sourceforge.net
Wed May 3 09:49:22 PDT 2006


Update of /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/message
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21359

Modified Files:
	Message.java 
Log Message:
missing cast


Index: Message.java
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tools/java/net/tinyos/message/Message.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Message.java	11 May 2005 23:16:25 -0000	1.6
--- Message.java	3 May 2006 16:49:19 -0000	1.7
***************
*** 444,448 ****
  	if (bitOffset > 0) {
  	    length -= 8 - bitOffset;
! 	    val = (ubyte(byteOffset) & ((1 << (8 - bitOffset)) - 1)) << length;
  	    byteOffset++;
  	}
--- 444,448 ----
  	if (bitOffset > 0) {
  	    length -= 8 - bitOffset;
! 	    val = (long)(ubyte(byteOffset) & ((1 << (8 - bitOffset)) - 1)) << length;
  	    byteOffset++;
  	}



More information about the Tinyos-commits mailing list