Don't assume chan value is int64 in chan_pop()
This commit is contained in:
		
							parent
							
								
									f61711047c
								
							
						
					
					
						commit
						411ea962ff
					
				| @ -179,8 +179,10 @@ chan_pop(struct chan *chan, struct value evalue) | ||||
| 	struct value *value = &stack->values[stack->n - 1]; | ||||
| 
 | ||||
| 	if (!value_is_equal(value, &evalue)) { | ||||
| 		err("%s: unexpected value %ld (expected %ld)", | ||||
| 				chan->name, value->i, evalue.i); | ||||
| 		err("%s: unexpected value %s (expected %s)", | ||||
| 				chan->name, | ||||
| 				value_str(*value), | ||||
| 				value_str(evalue)); | ||||
| 		return -1; | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user