You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mstime_start function is supposed to return a nonzero number if successful, or zero if unsuccessful, as this screenshot of the documentation shows:
However, I noticed that the code for the function is:
I'm pretty sure that the the function will return the value of the last statement in the function since the function is declared to return a type int. A quick test will verify the behavior. Providing an explicit return does make it much more readable.
Since 'cog' is not declared, I'm assuming that it is defined elsewhere and you are setting it in this function. Otherwise, you could just return the result of the computation and eliminate the variable.
Nice catch from a customer:
The mstime_start function is supposed to return a nonzero number if successful, or zero if unsuccessful, as this screenshot of the documentation shows:
However, I noticed that the code for the function is:
which does not have any return statement at the end. I think that the code for this function should instead be:
The text was updated successfully, but these errors were encountered: