Skip to content

Commit

Permalink
Add CLASS_ATTR_MIN/MAX for int attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelgk authored Oct 9, 2024
1 parent a749d53 commit 2d61387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/c74_min_object_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ max::t_class* wrap_as_max_external_common(min_class_type& instance, const char*
else if (attr.datatype() == "long" && attr.editor_style() == style::enum_index) {
CLASS_ATTR_ENUMINDEX(c, attr_name.c_str(), 0, range_string.c_str());
}
else if (attr.datatype() == "float64") {
else if (attr.datatype() == "float64" || attr.datatype() == "long") {
// istream_iterator splits using spaces by default
std::istringstream iss(range_string);
if (const std::vector tokens(std::istream_iterator<std::string>{iss},
Expand Down Expand Up @@ -836,7 +836,7 @@ void wrap_as_max_external(const char* cppname, const char* cmaxname, void* resou
else if (attr.datatype() == "long" && attr.editor_style() == style::enum_index) {
CLASS_ATTR_ENUMINDEX(this_jit_class, attr_name.c_str(), 0, range_string.c_str());
}
else if (attr.datatype() == "float64") {
else if (attr.datatype() == "float64" || attr.datatype() == "long") {
// istream_iterator splits using spaces by default
std::istringstream iss(range_string);
if (const std::vector tokens(std::istream_iterator<std::string>{iss},
Expand Down

0 comments on commit 2d61387

Please sign in to comment.