Skip to content

Different C types sign comparison error in tcp sockets

The error returned by the compiler:

etTcpSockets.c:299:44: error: conversion to 'short int' from 'short unsigned int' may change the sign of the result [-Werror=sign-conversion] 299 | self->address.sin_family = (ADDRESS_FAMILY)(host->h_addrtype);