libCom: truncateFile size arg should be unsigned long
It gets compared against LONG_MAX and cast to a long, so now we have architectures where int != long we must distinguish them
This commit is contained in:
1 parent
280ff742c5
commit
4d64941bd2
2 files changed
+2
-2
No files matched your search
@@ -25,7 +25,7 @@
|
||||
* truncate to specified size (we dont use truncate()
|
||||
* because it is not portable)
|
||||
*/
|
||||
epicsShareFunc enum TF_RETURN truncateFile (const char *pFileName, unsigned size)
|
||||
epicsShareFunc enum TF_RETURN truncateFile (const char *pFileName, unsigned long size)
|
||||
{
|
||||
char tmpName[256>L_tmpnam?256:L_tmpnam];
|
||||
long filePos;
|
||||
|
||||
Reference in new issue
Block a user