]> andersk Git - splint.git/blobdiff - src/ctype.c
Changes to fix malloc size problem.
[splint.git] / src / ctype.c
index 8ed249fa7e3a58bb92337d027e33a3e1755dca69..d3af6069b33f852a44dc1948df37c2763c07e3e8 100644 (file)
@@ -2838,7 +2838,7 @@ size_t ctype_getArraySize (ctype c)
 
 ctype ctype_biggerType (ctype c1, ctype c2)
 {
-  if (ctbase_isBigger (ctype_getCtbaseSafe (c2), ctype_getCtbaseSafe (c1)) )
+  if (ctbase_isBigger (ctype_getCtbaseSafe (c2), ctype_getCtbaseSafe (c1)))
     {
       return c2;
     }
@@ -2847,3 +2847,8 @@ ctype ctype_biggerType (ctype c1, ctype c2)
       return c1;
     }
 }
+
+int ctype_getSize (ctype c)
+{
+  return ctbase_getSize (ctype_getCtbaseSafe (ctype_realType (c)));
+}
This page took 0.071749 seconds and 4 git commands to generate.