Skip to content

Commit

Permalink
Merge pull request #806 from hsbadr/fix/headers
Browse files Browse the repository at this point in the history
Fix headers after #803
  • Loading branch information
dfalbel authored Mar 31, 2022
2 parents c3bfb63 + f054b99 commit 48ee0f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inst/include/torch_imports.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ XPtrTorchOptionalIntArrayRef from_sexp_optional_int_array_ref(SEXP x,
}

void* fixme_new_string(const char* x, int size) {
static void* (*fn)(const char*) = NULL;
static void* (*fn)(const char*, int) = NULL;
if (fn == NULL) {
fn = (void* (*)(const char*))R_GetCCallable("torch", "fixme_new_string");
fn = (void* (*)(const char*, int))R_GetCCallable("torch", "fixme_new_string");
}
return fn(x, size);
}
Expand All @@ -238,4 +238,4 @@ void* fixme_new_dimname(const char* x) {
return fn(x);
}

#endif // TORCH_IMPORTS
#endif // TORCH_IMPORTS

0 comments on commit 48ee0f4

Please sign in to comment.