Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Corey Wetterer-Nelson
VTK
Commits
e26f807b
Commit
e26f807b
authored
Sep 23, 2021
by
Corey Wetterer-Nelson
Browse files
fix size_t to int conversion warnings
parent
e28c3ab6
Pipeline
#248382
waiting for manual action with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
IO/AMR/vtkAMReXGridReaderInternal.cxx
View file @
e26f807b
...
...
@@ -920,13 +920,13 @@ void vtkAMReXGridReaderInternal::GetBlockAttribute(
// read every component of the variable into the buffers vector
std
::
string
attributeName
(
attribute
);
in
t
nComps
=
this
->
Header
->
parsedVariableNames
[
attributeName
].
size
();
size_
t
nComps
=
this
->
Header
->
parsedVariableNames
[
attributeName
].
size
();
std
::
vector
<
std
::
vector
<
char
>>
buffers
(
nComps
);
for
(
int
i
=
0
;
i
<
nComps
;
++
i
)
{
int
compIndex
=
this
->
Header
->
parsedVariableNames
[
attributeName
][
i
];
std
::
string
compName
=
this
->
Header
->
variableNames
[
compIndex
];
in
t
offsetOfAttribute
=
this
->
GetOffsetOfAttribute
(
compName
.
c_str
());
size_
t
offsetOfAttribute
=
this
->
GetOffsetOfAttribute
(
compName
.
c_str
());
is
.
seekg
((
linefeed
+
1
)
+
(
offsetOfAttribute
*
(
numberOfPoints
*
ird
->
numBytes
())));
buffers
[
i
].
resize
(
numberOfPoints
*
ird
->
numBytes
());
this
->
ReadBlockAttribute
(
is
,
numberOfPoints
,
ird
->
numBytes
(),
buffers
[
i
].
data
());
...
...
IO/AMR/vtkAMReXGridReaderInternal.h
View file @
e26f807b
...
...
@@ -266,7 +266,7 @@ void vtkAMReXGridReaderInternal::CreateVTKAttributeArray(vtkSOADataArrayTemplate
const
std
::
vector
<
std
::
vector
<
char
>>&
buffers
,
const
int
numberOfPoints
,
const
std
::
string
&
attribute
)
{
const
in
t
nComps
=
this
->
Header
->
parsedVariableNames
[
attribute
].
size
();
size_
t
nComps
=
this
->
Header
->
parsedVariableNames
[
attribute
].
size
();
dataArray
->
SetName
(
attribute
.
c_str
());
dataArray
->
SetNumberOfComponents
(
nComps
);
dataArray
->
SetNumberOfTuples
(
numberOfPoints
);
...
...
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