lib/standard: Remove lshift and rshift from Int and Byte
[nit.git] / tests / shootout_mandelbrot.nit
index f51a3d8..7970971 100644 (file)
@@ -54,9 +54,9 @@ for y in [0..h[ do
        end
 
        if zr*zr+zi*zi > limit*limit then
-           byte_acc = (byte_acc.lshift(1))
+           byte_acc = byte_acc << 1
        else
-           byte_acc = (byte_acc.lshift(1)) + 1u8
+           byte_acc = (byte_acc << 1) + 1u8
        end
 
        bit_num = bit_num + 1
@@ -66,7 +66,7 @@ for y in [0..h[ do
            byte_acc = 0u8
            bit_num = 0     
        else if x == w - 1 then
-           byte_acc = byte_acc.lshift(8-w%8)
+           byte_acc = byte_acc << (8-w%8)
            stdout.write_byte(byte_acc)
            byte_acc = 0u8
            bit_num = 0