fix: win: fix the last warns

This commit is contained in:
Stéphane Lesimple
2021-01-22 21:59:34 +01:00
parent 9916ce74bc
commit fef782b246
4 changed files with 5 additions and 5 deletions

View File

@@ -39,8 +39,8 @@ jobs:
- uses: actions/checkout@v2
- name: configure
run: |
echo running ./configure ${{ matrix.clionly }}
./configure ${{ matrix.clionly }}
echo running ./configure ${{ matrix.clionly }} ${{ matrix.debugprintf }} --with-werror
./configure ${{ matrix.clionly }} ${{ matrix.debugprintf }} --with-werror
- name: make
run: nproc && make -j$(nproc)
- name: check executable

View File

@@ -46,7 +46,7 @@
/* The original windows ftruncate has off_size (32bit) */
int large_ftruncate(int fd, gint64 size)
{ gint32 handle;
{ intptr_t handle;
if((handle=_get_osfhandle(fd)) == -1)
return -1;

View File

@@ -806,7 +806,7 @@ static gpointer io_thread(ecc_closure *ec)
/*** Allocate local parity buffer aligned at 128bit boundary */
ec->paritybase = g_malloc(n_parity_bytes+16); /* output buffer */
ec->parity = ec->paritybase + (16- ((unsigned long)ec->paritybase & 15));
ec->parity = ec->paritybase + (16- ((intptr_t)ec->paritybase & 15));
/*** Create buffer for the ndata input layers
Space is provided for one more sector so that

View File

@@ -48,7 +48,7 @@ AlignedBuffer* CreateAlignedBuffer(int size)
{ AlignedBuffer *ab = g_malloc0(sizeof(AlignedBuffer));
ab->base = g_malloc(size+4096);
ab->buf = ab->base + (4096 - ((unsigned long)ab->base & 4095));
ab->buf = ab->base + (4096 - ((intptr_t)ab->base & 4095));
return ab;
}