Nice/regtest/coreJava coreJava.code,1.30,1.31

Daniel Bonniot <[email protected]>
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/regtest/coreJava
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22023/regtest/coreJava

Modified Files:
	coreJava.code 
Log Message:
Fixed "long" assignment operators: <<=, >>= and >>>=


Index: coreJava.code
===================================================================
RCS file: /cvsroot/nice/Nice/regtest/coreJava/coreJava.code,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** coreJava.code	6 Oct 2004 16:14:02 -0000	1.30
--- coreJava.code	10 Mar 2005 14:08:59 -0000	1.31
***************
*** 87,90 ****
--- 87,110 ----
      p("" + (j >> 3));
  
+     j = 123000000000L;
+     j <<= 1;  p("" + j);
+     j >>= 1;  p("" + j);
+     j >>>= 1; p("" + j);
+ 
+     j = -123000000000L;
+     j <<= 1;  p("" + j);
+     j >>= 1;  p("" + j);
+     j >>>= 1; p("" + j);
+ 
+     i = 123;
+     i <<= 1;  p("" + i);
+     i >>= 1;  p("" + i);
+     i >>>= 1; p("" + i);
+ 
+     i = -123;
+     i <<= 1;  p("" + i);
+     i >>= 1;  p("" + i);
+     i >>>= 1; p("" + i);
+ 
      // floats
      float x = 0.1f;



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.