Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
long_description = open(readmePath, "rt").read()

setup(name='crc16',
version='0.1.1',
version='0.1.2',
description='Library for calculating CRC16',
author='Gennady Trafimenkov',
author_email='gennady.trafimenkov@gmail.com',
Expand Down
3 changes: 2 additions & 1 deletion src/_crc16module.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*
* **************************************************************************/

#define PY_SSIZE_T_CLEAN
#include <Python.h>

/* table for calculating CRC
Expand Down Expand Up @@ -91,7 +92,7 @@ static PyObject *
_crc16_crc16xmodem(PyObject *self, PyObject *args)
{
const unsigned char* data;
int data_len;
Py_ssize_t data_len;
unsigned int crc = 0;
unsigned int result;

Expand Down