On Sat, Apr 26, 2008 at 3:34 AM, Jeff Morriss <[EMAIL PROTECTED]> wrote: > > I get what he's saying but I just don't get it: why would the compiler > convert from int to unsigned short *before* it has to send the value into > the call to dowork()? E.g., 'x' should be an int until I (explicitly or > implicitly) cast it to something else, non? Actually it should still be an > int after the call to dowork(); it just won't be an int when dowork() gets > it. > > Maybe I need to go back to school because I'm feeling very noobish right > now.
function arguments are automatically cast when passed, you can see the reason why this is done in printf when you pass a long long instead of an int for a %i or a %d. -- This information is top security. When you have read it, destroy yourself. -- Marshall McLuhan _______________________________________________ Wireshark-dev mailing list [email protected] http://www.wireshark.org/mailman/listinfo/wireshark-dev
