| 1745 | } |
| 1746 | |
| 1747 | int pn_data_put_float(pn_data_t *data, float f) |
| 1748 | { |
| 1749 | pni_node_t *node = pni_data_add(data); |
| 1750 | if (node == NULL) return PN_OUT_OF_MEMORY; |
| 1751 | node->atom.type = PN_FLOAT; |
| 1752 | node->atom.u.as_float = f; |
| 1753 | return 0; |
| 1754 | } |
| 1755 | |
| 1756 | int pn_data_put_double(pn_data_t *data, double d) |
| 1757 | { |
no test coverage detected