소스 검색

fix return type

Samuel Thibault 12 년 전
부모
커밋
cb39722486
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/datawizard/memalloc.c

+ 1 - 1
src/datawizard/memalloc.c

@@ -774,7 +774,7 @@ starpu_allocate_buffer_on_node(unsigned dst_node, size_t size)
 #endif
 
 	if (_starpu_memory_manager_can_allocate_size(size, dst_node) == 0)
-		return NULL;
+		return 0;
 
 #ifdef STARPU_DEVEL
 #warning TODO: we need to use starpu_malloc which should itself inquire from the memory manager is there is enough available memory