File: 06_fix_FTBFS_gcc6.patch

package info (click to toggle)
esys-particle 2.3.5%2Bdfsg2-11
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 13,404 kB
  • sloc: cpp: 81,479; python: 5,872; makefile: 1,258; sh: 313; perl: 225
file content (18 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix FTBFS with gcc-6.
Author: Anton Gladky <gladk@debian.org>
Bug-Debian: https://bugs.debian.org/811838
Last-Update: 2016-08-10

Index: ESyS-Particle-2.3.5/Tools/dump2vtk/frame_vtk.cpp
===================================================================
--- ESyS-Particle-2.3.5.orig/Tools/dump2vtk/frame_vtk.cpp
+++ ESyS-Particle-2.3.5/Tools/dump2vtk/frame_vtk.cpp
@@ -1276,7 +1276,7 @@ void writeMeshFile(const string& infilen
   string header,skip;
   int numMeshIG;
 
-  while (datafile >> header != NULL){
+  while ((datafile >> header)){
     if (header == "TMIG"){
       datafile >> numMeshIG;
       for(int ni=0;ni<numMeshIG;ni++){