File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ pub fn main() {
1010 std:: process:: exit ( main_0 ( ) ) ;
1111}
1212fn main_0 ( ) -> i32 {
13- let tcp: Value < i32 > = Rc :: new ( RefCell :: new ( ( libc:: IPPROTO_TCP as i32 ) ) ) ;
14- let udp: Value < i32 > = Rc :: new ( RefCell :: new ( ( libc:: IPPROTO_UDP as i32 ) ) ) ;
15- let ip: Value < i32 > = Rc :: new ( RefCell :: new ( ( libc:: IPPROTO_IP as i32 ) ) ) ;
13+ let tcp: Value < i32 > = Rc :: new ( RefCell :: new ( libc:: IPPROTO_TCP ) ) ;
14+ let udp: Value < i32 > = Rc :: new ( RefCell :: new ( libc:: IPPROTO_UDP ) ) ;
15+ let ip: Value < i32 > = Rc :: new ( RefCell :: new ( libc:: IPPROTO_IP ) ) ;
1616 return ( ( ( * tcp. borrow ( ) ) + ( * udp. borrow ( ) ) ) + ( * ip. borrow ( ) ) ) ;
1717}
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ pub fn main() {
1111}
1212fn main_0 ( ) -> i32 {
1313 let v: Value < Vec < bool > > = Rc :: new ( RefCell :: new ( vec ! [ true ] ) ) ;
14- return ( ( * ( v. as_pointer ( ) as Ptr < bool > )
14+ return ( ( ( * ( v. as_pointer ( ) as Ptr < bool > )
1515 . offset ( 0_u64 as isize )
1616 . upgrade ( )
17- . deref ( ) ) as i32 ) ;
17+ . deref ( ) ) as bool ) as i32 ) ;
1818}
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ pub fn main() {
1212 }
1313}
1414unsafe fn main_0 ( ) -> i32 {
15- let mut tcp: i32 = ( libc:: IPPROTO_TCP as i32 ) ;
16- let mut udp: i32 = ( libc:: IPPROTO_UDP as i32 ) ;
17- let mut ip: i32 = ( libc:: IPPROTO_IP as i32 ) ;
15+ let mut tcp: i32 = libc:: IPPROTO_TCP ;
16+ let mut udp: i32 = libc:: IPPROTO_UDP ;
17+ let mut ip: i32 = libc:: IPPROTO_IP ;
1818 return ( ( ( tcp) + ( udp) ) + ( ip) ) ;
1919}
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ pub fn main() {
1313}
1414unsafe fn main_0 ( ) -> i32 {
1515 let mut v: Vec < bool > = vec ! [ true ] ;
16- return ( v[ ( 0_u64 ) as usize ] as i32 ) ;
16+ return ( ( v[ ( 0_u64 ) as usize ] as bool ) as i32 ) ;
1717}
You can’t perform that action at this time.
0 commit comments