Skip to content

Commit

Permalink
fix CRC32 to avoid -SXXXXXXX instead of XXXXXXXX
Browse files Browse the repository at this point in the history
  • Loading branch information
pryrt committed Mar 8, 2019
1 parent e5c1e65 commit 9fe271f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscFilteredViewer/pyscFilteredViewerLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def pyscfv_filter_file(cmd, src_fname):
if __pyscfv_TRACE: console.write('pyscfv_filter_file()\n')

import zlib
c32 = zlib.crc32(src_fname)
c32 = zlib.crc32(src_fname) & 0xFFFFFFFF # prevents it from flagging as negative
if __pyscfv_DEBUG: console.write('crc(src) = {:08X}\n'.format( c32 ) )

#ext = 'html'
Expand Down

0 comments on commit 9fe271f

Please sign in to comment.