Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
33ac8b63
Commit
33ac8b63
authored
Aug 20, 2019
by
Martin Heistermann
Browse files
fix more signedness bugs
parent
fb81bf64
Pipeline
#11833
failed with stage
in 5 minutes and 9 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/OpenVolumeMesh/Core/GeometryKernel.hh
View file @
33ac8b63
...
...
@@ -80,12 +80,12 @@ public:
assert
(
_vh
.
idx
()
<
(
int
)
vertices_
.
size
());
vertices_
[
_vh
.
idx
()]
=
_p
;
vertices_
[
_vh
.
u
idx
()]
=
_p
;
}
/// Get point _vh's coordinates
const
VecT
&
vertex
(
const
VertexHandle
&
_vh
)
const
{
return
vertices_
[
_vh
.
idx
()];
return
vertices_
[
_vh
.
u
idx
()];
}
VertexIter
delete_vertex
(
const
VertexHandle
&
_h
)
override
{
...
...
@@ -130,7 +130,7 @@ public:
if
(
_h1
==
_h2
)
return
;
std
::
swap
(
vertices_
[
_h1
.
idx
()],
vertices_
[
_h2
.
idx
()]);
std
::
swap
(
vertices_
[
_h1
.
u
idx
()],
vertices_
[
_h2
.
u
idx
()]);
TopologyKernelT
::
swap_vertex_indices
(
_h1
,
_h2
);
}
...
...
src/OpenVolumeMesh/Core/OpenVolumeMeshProperty.hh
View file @
33ac8b63
...
...
@@ -109,7 +109,7 @@ public:
data_
[
_dst_idx
]
=
data_
[
_src_idx
];
}
void
delete_element
(
size_t
_idx
)
override
{
data_
.
erase
(
data_
.
begin
()
+
_idx
);
data_
.
erase
(
data_
.
begin
()
+
static_cast
<
ssize_t
>
(
_idx
)
)
;
}
public:
...
...
src/OpenVolumeMesh/Core/PropertyPtr.hh
View file @
33ac8b63
...
...
@@ -103,7 +103,7 @@ public:
const_reference
operator
[](
size_t
_idx
)
const
{
return
(
*
ptr
::
shared_ptr
<
PropT
>::
get
())[
_idx
];
}
#endif
reference
operator
[](
const
EntityHandleT
&
_h
)
{
return
(
*
ptr
::
shared_ptr
<
PropT
>::
get
())[
_h
.
idx
()];
}
reference
operator
[](
const
EntityHandleT
&
_h
)
{
return
(
*
ptr
::
shared_ptr
<
PropT
>::
get
())[
_h
.
u
idx
()];
}
const_reference
operator
[](
const
EntityHandleT
&
_h
)
const
{
return
(
*
ptr
::
shared_ptr
<
PropT
>::
get
())[
_h
.
uidx
()];
}
void
serialize
(
std
::
ostream
&
_ostr
)
const
override
{
ptr
::
shared_ptr
<
PropT
>::
get
()
->
serialize
(
_ostr
);
}
...
...
src/OpenVolumeMesh/Geometry/Vector11T.hh
View file @
33ac8b63
...
...
@@ -678,7 +678,7 @@ auto operator<<(std::ostream& os, const VectorT<Scalar, DIM> &_vec) ->
sizeof
(
decltype
(
os
<<
_vec
[
0
]))
>=
0
,
std
::
ostream
&>::
type
{
os
<<
_vec
[
0
];
for
(
in
t
i
=
1
;
i
<
DIM
;
++
i
)
{
for
(
size_
t
i
=
1
;
i
<
DIM
;
++
i
)
{
os
<<
" "
<<
_vec
[
i
];
}
return
os
;
...
...
@@ -689,7 +689,7 @@ template<typename Scalar, int DIM>
auto
operator
>>
(
std
::
istream
&
is
,
VectorT
<
Scalar
,
DIM
>
&
_vec
)
->
typename
std
::
enable_if
<
sizeof
(
decltype
(
is
>>
_vec
[
0
]))
>=
0
,
std
::
istream
&>::
type
{
for
(
in
t
i
=
0
;
i
<
DIM
;
++
i
)
for
(
size_
t
i
=
0
;
i
<
DIM
;
++
i
)
is
>>
_vec
[
i
];
return
is
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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