Skip to content

Commit

Permalink
correct input types to lua_pushboolean
Browse files Browse the repository at this point in the history
  • Loading branch information
soumith committed Oct 18, 2016
1 parent 29499e6 commit 8c3f15a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ static int cutorch_hasHalfInstructions(lua_State *L) {
#ifdef CUDA_HALF_TENSOR
lua_pushboolean(L, THC_nativeHalfInstructions(state));
#else
lua_pushboolean(L, false);
lua_pushboolean(L, 0);
#endif
return 1;
}
Expand All @@ -914,7 +914,7 @@ static int cutorch_hasFastHalfInstructions(lua_State *L) {
#ifdef CUDA_HALF_TENSOR
lua_pushboolean(L, THC_fastHalfInstructions(state));
#else
lua_pushboolean(L, false);
lua_pushboolean(L, 0);
#endif
return 1;
}
Expand Down

0 comments on commit 8c3f15a

Please sign in to comment.