zhanghang1989 / PyTorch-Encoding

A CV toolkit for my papers.
https://hangzhang.org/PyTorch-Encoding/
MIT License
2.04k stars 450 forks source link

fix bugs for Windows compiling #428

Open RongLiu-Leo opened 3 months ago

RongLiu-Leo commented 3 months ago

Change "and" to "&&".

Fix a link error due to the usage of “long” type. It is 32-bit long on Windows 64 bit machines while 64 bit long on Linux 64 bit machines. Replace all occurrences of “long” in the code by “int64_t” to get rid of the link error.

May create a branch for Windows. Or test this change on Linux to merge.