Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c0d0e124 authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille
Browse files
parents 1d56057c c32775c3
Branches
Tags
No related merge requests found
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#ifndef FTESTCELL_HPP #ifndef FTESTCELL_HPP
#define FTESTCELL_HPP #define FTESTCELL_HPP
#include <cstddef>
#include "FBasicCell.hpp" #include "FBasicCell.hpp"
/** /**
...@@ -75,7 +76,7 @@ public: ...@@ -75,7 +76,7 @@ public:
buffer >> dataDown >> dataUp; buffer >> dataDown >> dataUp;
} }
static int GetSize(){ static size_t GetSize(){
return sizeof(long long int)*2; return sizeof(long long int)*2;
} }
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
// "http://www.cecill.info". // "http://www.cecill.info".
// "http://www.gnu.org/licenses". // "http://www.gnu.org/licenses".
// =================================================================================== // ===================================================================================
#
#include <cstddef>
#include "FUTester.hpp" #include "FUTester.hpp"
#include "../Src/Containers/FBufferReader.hpp" #include "../Src/Containers/FBufferReader.hpp"
...@@ -27,7 +30,7 @@ class TestBuffer : public FUTester<TestBuffer> { ...@@ -27,7 +30,7 @@ class TestBuffer : public FUTester<TestBuffer> {
void TestWriteRead(){ void TestWriteRead(){
FBufferWriter writer; 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; const int NbTest = 5;
for(int idxWrite = 0 ; idxWrite < NbTest ; ++idxWrite){ for(int idxWrite = 0 ; idxWrite < NbTest ; ++idxWrite){
writer << idxWrite << char(idxWrite) << double(idxWrite) << float(idxWrite); writer << idxWrite << char(idxWrite) << double(idxWrite) << float(idxWrite);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment