gnu software bugs - shift left

2013-11-02 Thread Mischa Baars
Hi, Here's the examples again, now each bug in a separate file. Hope it helps... Just compile with 'make' and run the executable. The source code is documented, so any questions you might have will probably be answered by reading the comments. Regards, Mischa. On 11/02/2013 07:10 PM, Dan

Re: gnu software bugs - shift left

2013-11-02 Thread Mischa Baars
On 11/02/2013 07:52 PM, Ian Lance Taylor wrote: On Sat, Nov 2, 2013 at 11:31 AM, Mischa Baars mjbaars1...@gmail.com wrote: Here's the examples again, now each bug in a separate file. Hope it helps... Just compile with 'make' and run the executable. The source code is documented, so any

Re: gnu software bugs - shift left

2013-11-02 Thread Jonathan Wakely
On 2 November 2013 18:57, Mischa Baars wrote: I understand, however it seems more logical to use the destination type to determine the type of the first and second operand. Are you completely sure this is the desired behaviour? It's the behaviour required by the C standard, so yes, it is

Re: gnu software bugs - shift left

2013-11-02 Thread Mischa Baars
On 11/02/2013 08:17 PM, Jonathan Wakely wrote: On 2 November 2013 18:57, Mischa Baars wrote: I understand, however it seems more logical to use the destination type to determine the type of the first and second operand. Are you completely sure this is the desired behaviour? It's the behaviour

Re: gnu software bugs - shift left

2013-11-02 Thread Alec Teal
Hi! On 02/11/13 19:22, Mischa Baars wrote: On 11/02/2013 08:17 PM, Jonathan Wakely wrote: On 2 November 2013 18:57, Mischa Baars wrote: *I understand, however it seems more logical to use the destination type to ** **determine the type of the first and second operand. * No. No it does not.