workaround for Tornado II not using LONG_MAX and LONG_MIN

that are constants of type long
This commit is contained in:
Jeff Hill
1999-09-03 20:20:48 +00:00
parent f4c3e9a3ac
commit 76dd1474a8
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -444,7 +444,7 @@ int epicsShareAPI cvtLongToString(
}
if(source<0) {
if(source == LONG_MIN) {
sprintf(pdest,"%ld",LONG_MIN);
sprintf(pdest,"%ld", (long)LONG_MIN);
return((int)strlen(pdest));
}
*pdest++ = '-';
@@ -514,7 +514,7 @@ int epicsShareAPI cvtLongToHexString(
}
if(source<0) {
if(source == LONG_MIN) {
sprintf(pdest,"%lx",LONG_MIN);
sprintf(pdest,"%lx",(long)LONG_MIN);
return((int)strlen(pdest));
}
*pdest++ = '-';
@@ -550,7 +550,7 @@ int epicsShareAPI cvtLongToOctalString(
}
if(source<0) {
if(source == LONG_MIN) {
sprintf(pdest,"%lo",LONG_MIN);
sprintf(pdest,"%lo",(long)LONG_MIN);
return((int)strlen(pdest));
}
*pdest++ = '-';
+3 -3
View File
@@ -444,7 +444,7 @@ int epicsShareAPI cvtLongToString(
}
if(source<0) {
if(source == LONG_MIN) {
sprintf(pdest,"%ld",LONG_MIN);
sprintf(pdest,"%ld", (long)LONG_MIN);
return((int)strlen(pdest));
}
*pdest++ = '-';
@@ -514,7 +514,7 @@ int epicsShareAPI cvtLongToHexString(
}
if(source<0) {
if(source == LONG_MIN) {
sprintf(pdest,"%lx",LONG_MIN);
sprintf(pdest,"%lx",(long)LONG_MIN);
return((int)strlen(pdest));
}
*pdest++ = '-';
@@ -550,7 +550,7 @@ int epicsShareAPI cvtLongToOctalString(
}
if(source<0) {
if(source == LONG_MIN) {
sprintf(pdest,"%lo",LONG_MIN);
sprintf(pdest,"%lo",(long)LONG_MIN);
return((int)strlen(pdest));
}
*pdest++ = '-';