Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
c49a9dd6
Commit
c49a9dd6
authored
Nov 25, 2015
by
Tiago Peixoto
Browse files
Add int16_t type to property map checks
parent
998fd1d6
Pipeline
#80
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/__init__.py
View file @
c49a9dd6
...
...
@@ -965,7 +965,7 @@ def _check_prop_writable(prop, name=None):
def
_check_prop_scalar
(
prop
,
name
=
None
,
floating
=
False
):
scalars
=
[
"bool"
,
"int32_t"
,
"int64_t"
,
"unsigned long"
,
scalars
=
[
"bool"
,
"int16_t"
,
"int32_t"
,
"int64_t"
,
"unsigned long"
,
"double"
,
"long double"
]
if
floating
:
scalars
=
[
"double"
,
"long double"
]
...
...
@@ -977,7 +977,7 @@ def _check_prop_scalar(prop, name=None, floating=False):
def
_check_prop_vector
(
prop
,
name
=
None
,
scalar
=
True
,
floating
=
False
):
scalars
=
[
"bool"
,
"int32_t"
,
"int64_t"
,
"unsigned long"
,
scalars
=
[
"bool"
,
"int16_t"
,
"int32_t"
,
"int64_t"
,
"unsigned long"
,
"double"
,
"long double"
]
if
not
scalar
:
scalars
+=
[
"string"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment