When I flag a simple function with the type internal, remix throws an infinite gas estimate warning. Without this type, everything is fine. Please, do you know why?
function half(uint a) {
uint b = a/2;
//...
}
-> Gas estimate for "half(uint256)": "230"
function half(uint a) internal {
uint b = a/2;
//...
}
-> Gas estimate for "half(uint256)": "infinite"