Skip to content

fixes for ofxOsc#5026

Open
tpltnt wants to merge 10 commits intoopenframeworks:masterfrom
tpltnt:fixes-ofxOsc
Open

fixes for ofxOsc#5026
tpltnt wants to merge 10 commits intoopenframeworks:masterfrom
tpltnt:fixes-ofxOsc

Conversation

@tpltnt
Copy link
Copy Markdown
Contributor

@tpltnt tpltnt commented Mar 31, 2016

Hi there,

i took a look at ofxOsc and fixed a few issues.
Cheers,
tpltnt

@underdoeg
Copy link
Copy Markdown
Contributor

What does this fix? It only failes because of the casting on 64bit systems
I think...

@tpltnt
Copy link
Copy Markdown
Contributor Author

tpltnt commented Apr 28, 2016

@underdoeg this PR was supposed to fix a few (implicit) problems like missing initializations etc. Yes, it is currently failing since I did not had the time to continue working on it. It was working on my machine at some point, but was (rightfully) stopped by the integration tests. Do you want me to continue on it? (I would re-prioritize it then)

Comment thread addons/ofxOsc/src/ofxOscMessage.cpp Outdated
{
ofLogWarning("ofxOscMessage") << "getArgAsInt32(): converting float to int32 for argument " << index;
return (std::int32_t)((ofxOscArgFloat*)args[index])->get();
return reinterpret_cast<std::int32_t> (dynamic_cast<ofxOscArgFloat*> args[index])->get();
Copy link
Copy Markdown
Contributor

@2bbb 2bbb Apr 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe:

return reinterpret_cast<std::int32_t> ((dynamic_cast<ofxOscArgFloat*> (args[index]))->get());

now, this line is interpreted like:

return (reinterpret_cast<std::int32_t> (dynamic_cast<ofxOscArgFloat*> (args[index])))->get();

@tpltnt
Copy link
Copy Markdown
Contributor Author

tpltnt commented May 3, 2016

thanks for pointing it out @2bbb, but it doesn't seem to be the only issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants