Skip to content

Commit

Permalink
ofxsProperty: workaround for a clang>=14 bug with -O2
Browse files Browse the repository at this point in the history
Bug observed on OSX 10.9 (causes a segfault)
  • Loading branch information
devernay committed Nov 14, 2022
1 parent d5db5d0 commit caf840a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Support/Library/ofxsProperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ namespace OFX {
for (std::size_t i = 0; i < values.size(); ++i) {
data[i] = values[i].c_str();
}
OfxStatus stat = gPropSuite->propSetStringN(_propHandle, property, (int)values.size(), &data[0]);
OfxStatus stat = gPropSuite->propSetStringN(_propHandle, property, (int)data.size(), &data[0]);
OFX::Log::error(stat != kOfxStatOK, "Failed on setting string property %s[0..%d], host returned status %s;",
property, (int)values.size()-1, mapStatusToString(stat));
if(throwOnFailure)
Expand Down

0 comments on commit caf840a

Please sign in to comment.