Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix int64 type #6

Merged
merged 1 commit into from
Mar 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions modules/juce_osc/osc/juce_OSCReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ namespace
return input.readIntBigEndian();
}

uint64 readUint64()
int64 readInt64()
{
checkBytesAvailable (8, "OSC input stream exhausted while reading uint64");
return (uint64) input.readInt64BigEndian();
checkBytesAvailable (8, "OSC input stream exhausted while reading int64");
return (int64) input.readInt64BigEndian();
}

float readFloat32()
Expand Down Expand Up @@ -199,6 +199,7 @@ namespace
case OSCTypes::T: return OSCArgument(true);
case OSCTypes::F: return OSCArgument(false);
case OSCTypes::int32: return OSCArgument (readInt32());
case OSCTypes::int64: return OSCArgument (readInt64());
case OSCTypes::float32: return OSCArgument (readFloat32());
case OSCTypes::float64: return OSCArgument (readFloat64());
case OSCTypes::string: return OSCArgument (readString());
Expand Down
Loading