Skip to content

Commit 3c67eb5

Browse files
Merge pull request #1827 from arcaneframework/dev/gg-fix-difference-for-datatype-between-arccore-and-arcane
Use same values for 'Arccore::ISerializer::eDataType' and 'Arcane::eDataType'
2 parents eeb0290 + 25f4dfe commit 3c67eb5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

arccore/src/serialize/arccore/serialize/ISerializer.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
22
//-----------------------------------------------------------------------------
3-
// Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
3+
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
44
// See the top-level COPYRIGHT file for details.
55
// SPDX-License-Identifier: Apache-2.0
66
//-----------------------------------------------------------------------------
77
/*---------------------------------------------------------------------------*/
8-
/* ISerializer.h (C) 2000-2023 */
8+
/* ISerializer.h (C) 2000-2024 */
99
/* */
1010
/* Interface d'un serialiseur. */
1111
/*---------------------------------------------------------------------------*/
@@ -79,10 +79,10 @@ class ARCCORE_SERIALIZE_EXPORT ISerializer
7979
DT_Int16 = 2, //!< Donnée de type entier 16 bits
8080
DT_Int32 = 3, //!< Donnée de type entier 32 bits
8181
DT_Int64 = 4, //!< Donnée de type entier 64 bits
82-
DT_Float32 = 5, //!< Donnée de type flottant 32 bits
83-
DT_Float16 = 6, //!< Donnée de type flottant 16 bits
84-
DT_BFloat16 = 7, //!< Donnée de type 'brain float'
85-
DT_Int8 = 8, //!< Donnée de type entier 8 bits
82+
DT_Float32 = 12, //!< Donnée de type flottant 32 bits
83+
DT_Float16 = 11, //!< Donnée de type flottant 16 bits
84+
DT_BFloat16 = 10, //!< Donnée de type 'brain float'
85+
DT_Int8 = 13, //!< Donnée de type entier 8 bits
8686
};
8787

8888
virtual ~ISerializer(){} //!< Libère les ressources
@@ -101,7 +101,7 @@ class ARCCORE_SERIALIZE_EXPORT ISerializer
101101
virtual void reserveSpan(eDataType dt, Int64 n) =0;
102102

103103
//! \sa reserve(eDataType dt,Int64 n)
104-
void reserveSpan(int dt,Int64 n) { reserveSpan((eDataType)dt,n); }
104+
void reserveSpan(int dt,Int64 n) { reserveSpan(static_cast<eDataType>(dt),n); }
105105

106106
//! Réserve pour une vue de \a values éléments
107107
virtual void reserveSpan(Span<const Real> values);

0 commit comments

Comments
 (0)