fixed bug #1504758 - CRC32 implementation use potentially non-32bit types
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4697 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
618331287c
commit
3e561714e4
7 changed files with 38 additions and 30 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "exehead/config.h"
|
||||
#include "growbuf.h"
|
||||
#include "crc32.h"
|
||||
#include <stdio.h>
|
||||
|
||||
class writer_sink {
|
||||
|
@ -57,12 +58,12 @@ private:
|
|||
#ifdef NSIS_CONFIG_CRC_SUPPORT
|
||||
class crc_writer_sink : public writer_sink {
|
||||
public:
|
||||
crc_writer_sink(unsigned long *crc) : m_crc(crc) {}
|
||||
crc_writer_sink(crc32_t *crc) : m_crc(crc) {}
|
||||
|
||||
virtual void write_data(const void *data, const size_t size);
|
||||
|
||||
private:
|
||||
unsigned long *m_crc;
|
||||
crc32_t *m_crc;
|
||||
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue