On Tue, Jul 23, 2013 at 8:49 PM, David Korn <[email protected]> wrote:
> cc: [email protected]
> Subject: Re: bool assignments not working with ?: operator
> --------
>
> There was a mistake in the patch I sent.  Here is the corrected version.
>
> ===============cut here=====================
> --- old/sh/streval.c    Tue Jun 18 15:07:11 2013
> +++ new/sh/streval.c    Tue Jul 23 14:06:52 2013
> @@ -238,6 +238,8 @@
>                         node.level = level;
>                         node.nosub = 0;
>                         node.nextop = *cp;
> +                       if(node.nextop == A_JMP)
> +                               node.nextop = ((unsigned 
> char*)ep)[*((short*)roundptr(ep,cp+1,short))];
>                         num = (*ep->fun)(&ptr,&node,VALUE,num);
>                         if(node.emode&ARITH_ASSIGNOP)
>                         {
> ===============cut here=====================

The 2nd patch fixes the problem... :-)
... I'll add a test to the "bool.sh" test module...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to