summaryrefslogtreecommitdiff
path: root/cad/qmls/files/patch-qmls_cdl.cpp
blob: 979a7080559a5f989f61ed92fb3d2e2494d12ac7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- qmls/cdl.cpp.orig	2018-08-25 04:01:56 UTC
+++ qmls/cdl.cpp
@@ -125,7 +125,7 @@ istream& operator>>(istream& ins, CanonicalDecimalList
       case ',':
         if (index != 0)
         {
-          buf[index] = (char)NULL;
+          buf[index] = '\0';
           str = buf;
           inputStack.Push(str);
           index = 0;
@@ -175,7 +175,7 @@ istream& operator>>(istream& ins, CanonicalDecimalList
       case ',':
         if (index != 0)
         {
-          buf[index] = (char)NULL;
+          buf[index] = '\0';
           careStack.Push(atoi(buf));
           index = 0;
         }
@@ -226,7 +226,7 @@ istream& operator>>(istream& ins, CanonicalDecimalList
         case ',':
           if (index != 0)
           {
-            buf[index] = (char)NULL;
+            buf[index] = '\0';
             dontCareStack.Push(atoi(buf));
             index = 0;
           }
@@ -295,4 +295,4 @@ bool GetAlphaNumeric(istream& ins, char& ch)
     return true;
   }
   return false;
-}
\ No newline at end of file
+}