htable can't handle NULL or 1 values, so we add 2 */
| 227 | |
| 228 | /* htable can't handle NULL or 1 values, so we add 2 */ |
| 229 | static struct gossmap_chan *ptrint2chan(const ptrint_t *pidx) |
| 230 | { |
| 231 | return map->chan_arr + ptr2int(pidx) - 2; |
| 232 | } |
| 233 | |
| 234 | static ptrint_t *chan2ptrint(const struct gossmap_chan *chan) |
| 235 | { |
no test coverage detected