Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-03-13 18:53:08 +0300
committerbubnikv <bubnikv@gmail.com>2019-03-13 18:53:08 +0300
commitdf8d475363f5e1f0376f1d0fdfcd097e5ab6562f (patch)
treedc60aa2d6a84a15c8c964fe2903d086481883753 /xs
parent8d8df8b6700d9f98b8aed1dbe77af488b4fe40ef (diff)
Fixed perl bindings
Diffstat (limited to 'xs')
-rw-r--r--xs/src/perlglue.cpp2
-rw-r--r--xs/xsp/Config.xsp2
2 files changed, 2 insertions, 2 deletions
diff --git a/xs/src/perlglue.cpp b/xs/src/perlglue.cpp
index da1d7abbf..1a551d67b 100644
--- a/xs/src/perlglue.cpp
+++ b/xs/src/perlglue.cpp
@@ -251,7 +251,7 @@ bool ConfigBase__set(ConfigBase* THIS, const t_config_option_key &opt_key, SV* v
case coPoint:
return from_SV_check(value, &static_cast<ConfigOptionPoint*>(opt)->value);
case coPoint3:
- return from_SV_check(value, &static_cast<const ConfigOptionPoint3*>(&opt)->value);
+ return from_SV_check(value, &static_cast<ConfigOptionPoint3*>(&opt)->value);
case coPoints:
{
std::vector<Vec2d> &values = static_cast<ConfigOptionPoints*>(opt)->values;
diff --git a/xs/xsp/Config.xsp b/xs/xsp/Config.xsp
index 017c8dad4..f9482bd3b 100644
--- a/xs/xsp/Config.xsp
+++ b/xs/xsp/Config.xsp
@@ -159,7 +159,7 @@ print_config_def()
opt_type = "s@";
} else if (optdef->type == coPoint || optdef->type == coPoints) {
opt_type = "point";
- } else if (optdef.type == coPoint3) {
+ } else if (optdef->type == coPoint3) {
opt_type = "point3";
} else if (optdef->type == coBool || optdef->type == coBools) {
opt_type = "bool";