Skip to content

Commit 9f975d4

Browse files
Xinyu LiXinyu Li
authored andcommitted
replace out0 with out
1 parent d28973b commit 9f975d4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/bb/image-io/rt_file.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -562,23 +562,23 @@ extern "C" int ION_EXPORT reader_dispose(const char *id) {
562562
}
563563

564564
extern "C" ION_EXPORT int binaryloader(halide_buffer_t *id_buf, int width, int height, halide_buffer_t *output_directory_buf, halide_buffer_t *prefix_buf,
565-
halide_buffer_t *out0) {
565+
halide_buffer_t *out) {
566566
try {
567567

568568
const std::string id(reinterpret_cast<const char *>(id_buf->host));
569569
const std::string output_directory(reinterpret_cast<const char *>(output_directory_buf->host));
570570
const std::string prefix(reinterpret_cast<const char *>(prefix_buf->host));
571571
auto &r(Reader::get_instance(id, width, height, output_directory,prefix));
572-
if (out0->is_bounds_query()) {
572+
if (out->is_bounds_query()) {
573573

574-
if (out0->is_bounds_query()) {
575-
out0->dim[0].min = 0;
576-
out0->dim[0].extent = width;
577-
out0->dim[1].min = 0;
578-
out0->dim[1].extent = height;
574+
if (out->is_bounds_query()) {
575+
out->dim[0].min = 0;
576+
out->dim[0].extent = width;
577+
out->dim[1].min = 0;
578+
out->dim[1].extent = height;
579579
}
580580
} else {
581-
r.get(out0->host, out0->size_in_bytes());
581+
r.get(out->host, out->size_in_bytes());
582582
}
583583
return 0;
584584
} catch (const std::exception &e) {

0 commit comments

Comments
 (0)