From b9aa43fb20d0d1036762dff50274d156f4b9ecf8 Mon Sep 17 00:00:00 2001 From: Thomas Helfer Date: Wed, 26 Jun 2024 22:25:43 +0200 Subject: [PATCH] Fix CastemInterface. You shall always run make check before making a pull-request, @mawence-wz --- mfront/src/CastemInterface.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mfront/src/CastemInterface.cxx b/mfront/src/CastemInterface.cxx index 59ca628d0..5ec8ab0ea 100644 --- a/mfront/src/CastemInterface.cxx +++ b/mfront/src/CastemInterface.cxx @@ -2386,7 +2386,7 @@ namespace mfront { tmp += pv.getExternalName(); tmp += ": " + treatScalar(pv.name) + "\n"; } else { - for (unsigned short j = 0; j != pv.arraySize;) { + for (unsigned short j = 0; j != pv.arraySize; ++j) { tmp += pv.getExternalName(); tmp += ": " + treatScalar(pv.name, j) + "\n"; } @@ -2396,7 +2396,7 @@ namespace mfront { tmp += pv.getExternalName(); tmp += ": " + treatTVector(h, pv.name); } else { - for (unsigned short j = 0; j != pv.arraySize;) { + for (unsigned short j = 0; j != pv.arraySize; ++j) { tmp += pv.getExternalName(); tmp += ": " + treatTVector(h, pv.name, j) + "\n"; } @@ -2406,7 +2406,7 @@ namespace mfront { tmp += pv.getExternalName(); tmp += ": " + treatStensor(h, pv.name) + "\n"; } else { - for (unsigned short j = 0; j != pv.arraySize;) { + for (unsigned short j = 0; j != pv.arraySize; ++j) { tmp += pv.getExternalName(); tmp += ": " + treatStensor(h, pv.name, j) + "\n"; } @@ -2416,7 +2416,7 @@ namespace mfront { tmp += pv.getExternalName(); tmp += ": " + treatTensor(h, pv.name) + "\n"; } else { - for (unsigned short j = 0; j != pv.arraySize;) { + for (unsigned short j = 0; j != pv.arraySize; ++j) { tmp += pv.getExternalName(); tmp += ": " + treatTensor(h, pv.name, j) + "\n"; } @@ -2450,7 +2450,7 @@ namespace mfront { tmp += pm.getExternalName(); tmp += ": " + treatScalar(pm.name) + "\n"; } else { - for (unsigned short j = 0; j != pm.arraySize;) { + for (unsigned short j = 0; j != pm.arraySize; ++j) { tmp += pm.getExternalName(); tmp += treatScalar(pm.name, j) + "\n"; }