| 1643 | } |
| 1644 | |
| 1645 | char *u16_option(struct command *cmd, const char *arg, bool check_only, u16 *i) |
| 1646 | { |
| 1647 | u64 n; |
| 1648 | char *problem = u64_option(cmd, arg, false, &n); |
| 1649 | |
| 1650 | if (problem) |
| 1651 | return problem; |
| 1652 | |
| 1653 | if ((u16)n != n) |
| 1654 | return tal_fmt(tmpctx, "'%s' is too large (overflow)", arg); |
| 1655 | |
| 1656 | if (!check_only) |
| 1657 | *i = n; |
| 1658 | return NULL; |
| 1659 | } |
| 1660 | |
| 1661 | char *bool_option(struct command *cmd, const char *arg, bool check_only, bool *i) |
| 1662 | { |
no test coverage detected