Commit 7d44529b authored by Keith Fieldhouse's avatar Keith Fieldhouse Committed by Marcus D. Hanwell
Browse files

Fix compiler warnings

size_t is not an int on Windows 64
parent e79f57e8
...@@ -183,8 +183,8 @@ int HaveComment; ...@@ -183,8 +183,8 @@ int HaveComment;
char CommentText[50000]; char CommentText[50000];
int CommentState; int CommentState;
int sigClosed; int sigClosed;
int sigMark[10]; size_t sigMark[10];
int sigMarkDepth = 0; size_t sigMarkDepth = 0;
unsigned int sigAllocatedLength; unsigned int sigAllocatedLength;
int mainClass; int mainClass;
char *currentId = 0; char *currentId = 0;
...@@ -245,7 +245,7 @@ void preSig(const char *arg) ...@@ -245,7 +245,7 @@ void preSig(const char *arg)
} }
else if (!sigClosed) else if (!sigClosed)
{ {
int m, n; size_t m, n;
char *cp; char *cp;
checkSigSize(arg); checkSigSize(arg);
cp = currentFunction->Signature; cp = currentFunction->Signature;
...@@ -267,7 +267,7 @@ void postSig(const char *arg) ...@@ -267,7 +267,7 @@ void postSig(const char *arg)
} }
else if (!sigClosed) else if (!sigClosed)
{ {
int m, n; size_t m, n;
char *cp; char *cp;
checkSigSize(arg); checkSigSize(arg);
cp = currentFunction->Signature; cp = currentFunction->Signature;
...@@ -288,7 +288,7 @@ void preScopeSig(const char *arg) ...@@ -288,7 +288,7 @@ void preScopeSig(const char *arg)
} }
else if (!sigClosed) else if (!sigClosed)
{ {
int i, m, n, depth; size_t i, m, n, depth;
char *cp; char *cp;
checkSigSize(arg); checkSigSize(arg);
cp = currentFunction->Signature; cp = currentFunction->Signature;
...@@ -365,7 +365,7 @@ void swapSig() ...@@ -365,7 +365,7 @@ void swapSig()
} }
if (currentFunction->Signature && sigMark[sigMarkDepth] > 0) if (currentFunction->Signature && sigMark[sigMarkDepth] > 0)
{ {
int i, m, n, nn; size_t i, m, n, nn;
char c; char c;
char *cp; char *cp;
cp = currentFunction->Signature; cp = currentFunction->Signature;
...@@ -394,7 +394,7 @@ void chopSig(void) ...@@ -394,7 +394,7 @@ void chopSig(void)
{ {
if (currentFunction->Signature) if (currentFunction->Signature)
{ {
int n = strlen(currentFunction->Signature); size_t n = strlen(currentFunction->Signature);
if (n > 0) if (n > 0)
{ {
currentFunction->Signature[n-1] = '\0'; currentFunction->Signature[n-1] = '\0';
......
...@@ -126,8 +126,8 @@ int HaveComment; ...@@ -126,8 +126,8 @@ int HaveComment;
char CommentText[50000]; char CommentText[50000];
int CommentState; int CommentState;
int sigClosed; int sigClosed;
int sigMark[10]; size_t sigMark[10];
int sigMarkDepth = 0; size_t sigMarkDepth = 0;
unsigned int sigAllocatedLength; unsigned int sigAllocatedLength;
int mainClass; int mainClass;
char *currentId = 0; char *currentId = 0;
...@@ -188,7 +188,7 @@ void preSig(const char *arg) ...@@ -188,7 +188,7 @@ void preSig(const char *arg)
} }
else if (!sigClosed) else if (!sigClosed)
{ {
int m, n; size_t m, n;
char *cp; char *cp;
checkSigSize(arg); checkSigSize(arg);
cp = currentFunction->Signature; cp = currentFunction->Signature;
...@@ -210,7 +210,7 @@ void postSig(const char *arg) ...@@ -210,7 +210,7 @@ void postSig(const char *arg)
} }
else if (!sigClosed) else if (!sigClosed)
{ {
int m, n; size_t m, n;
char *cp; char *cp;
checkSigSize(arg); checkSigSize(arg);
cp = currentFunction->Signature; cp = currentFunction->Signature;
...@@ -231,7 +231,7 @@ void preScopeSig(const char *arg) ...@@ -231,7 +231,7 @@ void preScopeSig(const char *arg)
} }
else if (!sigClosed) else if (!sigClosed)
{ {
int i, m, n, depth; size_t i, m, n, depth;
char *cp; char *cp;
checkSigSize(arg); checkSigSize(arg);
cp = currentFunction->Signature; cp = currentFunction->Signature;
...@@ -308,7 +308,7 @@ void swapSig() ...@@ -308,7 +308,7 @@ void swapSig()
} }
if (currentFunction->Signature && sigMark[sigMarkDepth] > 0) if (currentFunction->Signature && sigMark[sigMarkDepth] > 0)
{ {
int i, m, n, nn; size_t i, m, n, nn;
char c; char c;
char *cp; char *cp;
cp = currentFunction->Signature; cp = currentFunction->Signature;
...@@ -337,7 +337,7 @@ void chopSig(void) ...@@ -337,7 +337,7 @@ void chopSig(void)
{ {
if (currentFunction->Signature) if (currentFunction->Signature)
{ {
int n = strlen(currentFunction->Signature); size_t n = strlen(currentFunction->Signature);
if (n > 0) if (n > 0)
{ {
currentFunction->Signature[n-1] = '\0'; currentFunction->Signature[n-1] = '\0';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment