Wrong checksum calculated after migrating code to C extension for python 3
I am new to python C extension code and migrating old python 2.7 based c extension code to python 3.6 based c extension code using Visual Studio 2015.
Steps in old code -
Steps in new migrated code -
With new code I am getting wrong checksum. Are the new steps in migrated code correct? Is it due to difference in char* and unsigned char* pointer? Can anybody guide how I can calculate correct checksum?
While posting this question, I thought that it might be because of difference in char* and unsigned char* pointers. I just tried implementing that solution by casting char* pointer to unsigned char* pointer. Did this only while calculating checksum and voila! it worked!
链接地址: http://www.djcxy.com/p/65012.html上一篇: pyQt4和继承