mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	17175: Src/math.c: didn't handle parameters before a ternary expression
properly.
This commit is contained in:
		
							parent
							
								
									dbe104ca8c
								
							
						
					
					
						commit
						cd3578ed94
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -1109,6 +1109,8 @@ mathparse(int pc) | |||
| 	    } | ||||
| 	    break; | ||||
| 	case QUEST: | ||||
| 	    if (stack[sp].val.type == MN_UNSET) | ||||
| 		stack[sp].val = getnparam(stack[sp].lval); | ||||
| 	    q = (stack[sp].val.type == MN_FLOAT) ? (zlong)stack[sp].val.u.d : | ||||
| 		stack[sp].val.u.l; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue