Skip to content

Commit 5a96631

Browse files
committed
Use integer literal 0 instead of '\0'
1 parent 652c7f4 commit 5a96631

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compost_rpc/lib/c/source_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ class SourcePart:
620620
compost_slice_copy_from(dest, (void *)src, len);
621621
if (len < dest.len) {
622622
for (int i = len; i < dest.len; i++) {
623-
compost_slice_set(dest, i, '\0');
623+
compost_slice_set(dest, i, 0);
624624
}
625625
}
626626
}

0 commit comments

Comments
 (0)