msvc.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. diff --git a/GPUQREngine/Include/GPUQREngine_BucketList.hpp b/GPUQREngine/Include/GPUQREngine_BucketList.hpp
  2. index f37e3ecf..6f141a99 100644
  3. --- a/GPUQREngine/Include/GPUQREngine_BucketList.hpp
  4. +++ b/GPUQREngine/Include/GPUQREngine_BucketList.hpp
  5. @@ -62,7 +62,7 @@ public:
  6. int VThead; // Index of the first available entry in VTlist
  7. // Constructors
  8. - void *operator new(long unsigned int, BucketList* p)
  9. + void *operator new(size_t, BucketList* p)
  10. {
  11. return p;
  12. }
  13. diff --git a/GPUQREngine/Include/GPUQREngine_Front.hpp b/GPUQREngine/Include/GPUQREngine_Front.hpp
  14. index 02d4208b..8517b2c2 100644
  15. --- a/GPUQREngine/Include/GPUQREngine_Front.hpp
  16. +++ b/GPUQREngine/Include/GPUQREngine_Front.hpp
  17. @@ -47,7 +47,7 @@ public:
  18. /* Debug Fields */
  19. bool printMe;
  20. - void* operator new(long unsigned int reqMem, Front* ptr){ return ptr; }
  21. + void* operator new(size_t reqMem, Front* ptr){ return ptr; }
  22. Front(
  23. Int fids_arg, // the front identifier
  24. diff --git a/GPUQREngine/Include/GPUQREngine_LLBundle.hpp b/GPUQREngine/Include/GPUQREngine_LLBundle.hpp
  25. index 93bd3212..fc347143 100644
  26. --- a/GPUQREngine/Include/GPUQREngine_LLBundle.hpp
  27. +++ b/GPUQREngine/Include/GPUQREngine_LLBundle.hpp
  28. @@ -68,7 +68,7 @@ public:
  29. TaskType CurrentTask;
  30. - void *operator new(long unsigned int, LLBundle* p){ return p; }
  31. + void *operator new(size_t, LLBundle* p){ return p; }
  32. LLBundle(BucketList *buckets, Int panelSize, Int nativeBucket);
  33. // empty LLBundle constructor (currently used, kept for possible future use
  34. diff --git a/GPUQREngine/Include/GPUQREngine_Scheduler.hpp b/GPUQREngine/Include/GPUQREngine_Scheduler.hpp
  35. index aa3781d5..069b01a5 100644
  36. --- a/GPUQREngine/Include/GPUQREngine_Scheduler.hpp
  37. +++ b/GPUQREngine/Include/GPUQREngine_Scheduler.hpp
  38. @@ -90,7 +90,7 @@ public:
  39. cudaStream_t memoryStreamD2H;
  40. /* Scheduler.cpp */
  41. - void *operator new(long unsigned int, Scheduler* p){ return p; }
  42. + void *operator new(size_t, Scheduler* p){ return p; }
  43. Scheduler(Front *fronts, Int numFronts, size_t gpuMemorySize);
  44. ~Scheduler();