diff --git a/src/smblib/smballoc.c b/src/smblib/smballoc.c index edfa0404dc4088d6d38d138a1e97258f5aed15d8..76c9437691f23f43b51d80ba01fe956742c74649 100644 --- a/src/smblib/smballoc.c +++ b/src/smblib/smballoc.c @@ -210,7 +210,7 @@ int SMBCALL smb_freemsgdat(smb_t* smb, ulong offset, ulong length, uint16_t refs } } fflush(smb->sda_fp); - if(filelength(fileno(smb->sdt_fp)) / SDT_BLOCK_LEN > filelength(fileno(smb->sda_fp)) / sizeof(uint16_t)) + if(filelength(fileno(smb->sdt_fp)) / SDT_BLOCK_LEN > (long)(filelength(fileno(smb->sda_fp)) / sizeof(uint16_t))) chsize(fileno(smb->sdt_fp), (filelength(fileno(smb->sda_fp)) / sizeof(uint16_t)) * SDT_BLOCK_LEN); if(da_opened) smb_close_da(smb); @@ -418,7 +418,7 @@ long SMBCALL smb_allochdr(smb_t* smb, ulong length) } /****************************************************************************/ -/* Allocates space for index, but doesn't search for unused blocks */ +/* Allocates space for header, but doesn't search for unused blocks */ /* Returns negative value on error */ /****************************************************************************/ long SMBCALL smb_fallochdr(smb_t* smb, ulong length)