Parameter becoming zero somewhere

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-05-02T12:18:22Z Indexed on 2010/05/02 12:27 UTC
Read the original article Hit count: 185

Hey guys,

Something really weird is happening: when I call foo(100*1.0f), somewhere along the line that becomes 0. To verify I put a breakpoint on foo(), and it indeed is zero and it indeed gets called with 100*1.0f. The code is in Obj-C++.

Here is the calling function in XCode's GDB frontend, as you can see, score*scoreMultiplier is 100. Calling Function

And here is the called function in XCode's GDB frontend, here _score is 0. Called Function

© Stack Overflow or respective owner

Related posts about xcode

Related posts about objective-c++