I'm using Stoffregen's TimerOne library to schedule an interruption. The period is passed as unsigned long parameter to the "initialize" function (in microseconds).
PaulS:
Why do you think that? What is 1000 * 1000? Keep in mind that 1000 is an int. So, the result of the multiplication will ALSO be an int.
Now you mention it, with 1000*1000 there's this warning:
warning: integer overflow in expression
But with the 1000000 magic number there are no warnings.
Why is this? Shouldn't 1000000 also be treated as int by the compiler unless I add the L suffix? This value is also greater than 32,767, which is int's max value in the Uno (16 bits).