Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
c32775c3
Commit
c32775c3
authored
Jan 09, 2014
by
COULAUD Olivier
Browse files
remove warnings with return type of getSize function in FTestCell class
parent
33701cb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Src/Components/FTestCell.hpp
View file @
c32775c3
...
...
@@ -16,6 +16,7 @@
#ifndef FTESTCELL_HPP
#define FTESTCELL_HPP
#include <cstddef>
#include "FBasicCell.hpp"
/**
...
...
@@ -75,7 +76,7 @@ public:
buffer
>>
dataDown
>>
dataUp
;
}
static
in
t
GetSize
(){
static
size_
t
GetSize
(){
return
sizeof
(
long
long
int
)
*
2
;
}
...
...
UTests/utestBuffer.cpp
View file @
c32775c3
...
...
@@ -13,6 +13,9 @@
// "http://www.cecill.info".
// "http://www.gnu.org/licenses".
// ===================================================================================
#
#include <cstddef>
#include "FUTester.hpp"
#include "../Src/Containers/FBufferReader.hpp"
...
...
@@ -27,7 +30,7 @@ class TestBuffer : public FUTester<TestBuffer> {
void
TestWriteRead
(){
FBufferWriter
writer
;
const
int
BytesTested
=
(
sizeof
(
int
)
+
sizeof
(
char
)
+
sizeof
(
double
)
+
sizeof
(
float
));
const
int
BytesTested
=
static_cast
<
int
>
(
sizeof
(
int
)
+
sizeof
(
char
)
+
sizeof
(
double
)
+
sizeof
(
float
));
const
int
NbTest
=
5
;
for
(
int
idxWrite
=
0
;
idxWrite
<
NbTest
;
++
idxWrite
){
writer
<<
idxWrite
<<
char
(
idxWrite
)
<<
double
(
idxWrite
)
<<
float
(
idxWrite
);
...
...
Write
Preview
Markdown
is supported
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