Skip to content
Snippets Groups Projects
Commit 011b8117 authored by florian's avatar florian
Browse files

FIX: Use Cints for setters

parent fb3f50f2
Branches
Tags
1 merge request!11F get value
Pipeline #13198 failed
......@@ -1951,9 +1951,9 @@ function set_value(
err_code = ccall(
(:caosdb_entity_entity_set_int_value, CaosDB.library_name),
Cint,
(Ref{_Entity}, Clong),
(Ref{_Entity}, Cint),
entity,
Clong(value),
Cint(value),
)
elseif in_type <: Number
err_code = ccall(
......@@ -1988,9 +1988,9 @@ function set_value(
err_code = ccall(
(:caosdb_entity_entity_set_int_list_value, CaosDB.library_name),
Cint,
(Ref{_Entity}, Ptr{Clong}, Cint),
(Ref{_Entity}, Ptr{Cint}, Cint),
entity,
Vector{Clong}(value),
Vector{Cint}(value),
vec_length,
)
elseif in_type <: Vector{T} where {T<:Number}
......@@ -2040,9 +2040,9 @@ function set_value(
err_code = ccall(
(:caosdb_entity_property_set_int_value, CaosDB.library_name),
Cint,
(Ref{_Property}, Clong),
(Ref{_Property}, Cint),
property,
Clong(value),
Cint(value),
)
elseif in_type <: Number
err_code = ccall(
......@@ -2077,9 +2077,9 @@ function set_value(
err_code = ccall(
(:caosdb_entity_property_set_int_list_value, CaosDB.library_name),
Cint,
(Ref{_Property}, Ptr{Clong}, Cint),
(Ref{_Property}, Ptr{Cint}, Cint),
property,
Vector{Clong}(value),
Vector{Cint}(value),
vec_length,
)
elseif in_type <: Vector{T} where {T<:Number}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment