* xmlXPathMultValues: * @ctxt: the XPath Parser context * * Implement the multiply operation on XPath objects: * The numeric operators convert their operands to numbers as if * by calling the number function. */
| 6471 | * by calling the number function. |
| 6472 | */ |
| 6473 | void |
| 6474 | xmlXPathMultValues(xmlXPathParserContextPtr ctxt) { |
| 6475 | xmlXPathObjectPtr arg; |
| 6476 | double val; |
| 6477 | |
| 6478 | arg = valuePop(ctxt); |
| 6479 | if (arg == NULL) |
| 6480 | XP_ERROR(XPATH_INVALID_OPERAND); |
| 6481 | val = xmlXPathCastToNumberInternal(ctxt, arg); |
| 6482 | xmlXPathReleaseObject(ctxt->context, arg); |
| 6483 | CAST_TO_NUMBER; |
| 6484 | CHECK_TYPE(XPATH_NUMBER); |
| 6485 | ctxt->value->floatval *= val; |
| 6486 | } |
| 6487 | |
| 6488 | /** |
| 6489 | * xmlXPathDivValues: |
no test coverage detected