Skip to content

Commit d09d8b8

Browse files
committed
make format
1 parent db7682d commit d09d8b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backends/torch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ RAI_Script *RAI_ScriptCreateTorch(const char *devicestr, const char *scriptdef,
333333
TorchScriptFunctionArgumentType *argTypes =
334334
array_new(TorchScriptFunctionArgumentType, argCount);
335335
for (size_t j = 0; j < argCount; j++) {
336-
TorchScriptFunctionArgumentType argType= torchScript_FunctionArgumentype(script, i, j);
336+
TorchScriptFunctionArgumentType argType = torchScript_FunctionArgumentype(script, i, j);
337337
argTypes = array_append(argTypes, argType);
338338
}
339339
AI_dictAdd(ret->functionData, (void *)name, (void *)argTypes);

src/util/arr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,6 @@ static void array_free(array_t arr) {
203203
/* Duplicate the array to the pointer dest. */
204204
#define array_clone(dest, arr) \
205205
({ \
206-
dest = array_newlen((array_hdr(arr)->elem_sz), array_len(arr)); \
207-
memcpy(dest, arr, (array_hdr(arr)->elem_sz) * (array_len(arr))); \
206+
dest = array_newlen((array_hdr(arr)->elem_sz), array_len(arr)); \
207+
memcpy(dest, arr, (array_hdr(arr)->elem_sz) * (array_len(arr))); \
208208
})

0 commit comments

Comments
 (0)