Explorar el Código

distributed: fix division exception in ServerRepository

change operator to double slash for integer division

Closes #762
fireclawthefox hace 6 años
padre
commit
b3c79096e5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      direct/src/distributed/ServerRepository.py

+ 1 - 1
direct/src/distributed/ServerRepository.py

@@ -137,7 +137,7 @@ class ServerRepository:
 
         # An allocator object that assigns the next doIdBase to each
         # client.
-        self.idAllocator = UniqueIdAllocator(0, 0xffffffff / self.doIdRange)
+        self.idAllocator = UniqueIdAllocator(0, 0xffffffff // self.doIdRange)
 
         self.dcFile = DCFile()
         self.dcSuffix = ''