RE: Bug#1107330: openbabel: autopkgtest uses incredible amount of memory on s390x

Pranav P <[email protected]>
Newsgroups gmane.linux.debian.ports.s390
Message-ID <SJ0PR15MB5811D2CACFEDF15C6EC6B796A05AA@SJ0PR15MB5811.namprd15.prod.outlook.com>
Hi Paul,

Sorry. I had typed in `unsigned char` in the previous mail instead of `signed char`.
The following is the git diff.

diff --git a/src/formats/getinchi.cpp b/src/formats/getinchi.cpp
index abda0a244..58c53cdac 100644
--- a/src/formats/getinchi.cpp
+++ b/src/formats/getinchi.cpp
@@ -159,7 +159,7 @@ string GetInChI(istream& is)
   string result;
   enum statetype {before_inchi, match_inchi, unquoted, quoted};
   statetype state = before_inchi;
-  char ch, lastch=0, qch=0;
+  signed char ch, lastch=0, qch=0;
   size_t split_pos = 0;
   bool inelement=false, afterelement=false;

Thanks,
Pranav
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.