Skip to content

Commit

Permalink
Fix minor Windows warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcnamara committed Sep 21, 2023
1 parent c3b1a32 commit cb31934
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/xlsxwriter/packager.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
#include <stdint.h>

#ifdef USE_SYSTEM_MINIZIP
#ifdef __GNUC__
#pragma GCC system_header
#endif
#include "minizip/zip.h"
#else
#include "third_party/zip.h"
Expand Down
2 changes: 1 addition & 1 deletion src/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ lxw_version_id(void)
uint16_t
lxw_hash_password(const char *password)
{
uint16_t byte_count = strlen(password);
uint16_t byte_count = (uint16_t) strlen(password);
uint16_t hash = 0;
const char *p = &password[byte_count];

Expand Down

0 comments on commit cb31934

Please sign in to comment.