Skip to content

Commit 653be59

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Use nullptr in faiss/gpu/StandardGpuResources.cpp (facebookresearch#4232)
Summary: Pull Request resolved: facebookresearch#4232 `nullptr` is preferable to `0` or `NULL`. Let's use it everywhere so we can enable `-Wzero-as-null-pointer-constant`. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: dtolnay Differential Revision: D70818157 fbshipit-source-id: a46d64b6d80844f5246f7df236eb6ec54ce2886f
1 parent 3d96ad5 commit 653be59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

faiss/gpu/StandardGpuResources.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ void StandardGpuResourcesImpl::initializeForDevice(int device) {
411411
raftHandles_.emplace(std::make_pair(device, defaultStream));
412412
#endif
413413

414-
cudaStream_t asyncCopyStream = 0;
414+
cudaStream_t asyncCopyStream = nullptr;
415415
CUDA_VERIFY(
416416
cudaStreamCreateWithFlags(&asyncCopyStream, cudaStreamNonBlocking));
417417

0 commit comments

Comments
 (0)