Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
dolfin
0001-Use-correct-type-for-index_to_position-val...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Use-correct-type-for-index_to_position-value-tempora.patch of Package dolfin
From ce30e267b4fff4307ecc20e58b82ef288c5d6e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de> Date: Tue, 8 Aug 2023 15:17:51 +0200 Subject: [PATCH] Use correct type for index_to_position value temporary The value_type (currently) is an unsigned int, which is summed up from an unsigned size_t, so using a signed int is plain wrong. Also, current GCC versions (>=13) no longer implicitly include cstdint, so std::int32_t is an unknown type here. --- dolfin/mesh/MeshConnectivity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolfin/mesh/MeshConnectivity.h b/dolfin/mesh/MeshConnectivity.h index b9ec2a6..c7b041f 100644 --- a/dolfin/mesh/MeshConnectivity.h +++ b/dolfin/mesh/MeshConnectivity.h @@ -132,7 +132,7 @@ namespace dolfin // Initialize offsets and compute total size index_to_position.resize(connections.size() + 1); - std::int32_t size = 0; + decltype(index_to_position)::value_type size = 0; for (std::size_t e = 0; e < connections.size(); e++) { index_to_position[e] = size; -- 2.41.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor