Skip to content

Commit

Permalink
Merge branch 'master' into srj-rungen
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson committed Jul 12, 2017
2 parents f2c229b + ad7aabd commit eab5634
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/halide_image_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "jpeglib.h"
#endif

#include "HalideRuntime.h" // for halide_type_t

namespace Halide {
namespace Tools {

Expand Down Expand Up @@ -923,7 +925,7 @@ struct ImageTypeConversion {
case Internal::halide_type_code(halide_type_uint, 64):
return convert_image<DstElemType>(src.template as<uint64_t>());
default:
assert(!"Unsupported type");
assert(false && "Unsupported type");
using DstImageType = typename Internal::ImageTypeWithElemType<ImageType, DstElemType>::type;
return DstImageType();
}
Expand Down Expand Up @@ -968,7 +970,7 @@ struct ImageTypeConversion {
case Internal::halide_type_code(halide_type_uint, 64):
return convert_image<uint64_t>(src);
default:
assert(!"Unsupported type");
assert(false && "Unsupported type");
return ImageType();
}
}
Expand Down Expand Up @@ -1015,7 +1017,7 @@ struct ImageTypeConversion {
case Internal::halide_type_code(halide_type_uint, 64):
return convert_image(src.template as<uint64_t>(), dst_type);
default:
assert(!"Unsupported type");
assert(false && "Unsupported type");
return ImageType();
}
}
Expand Down

0 comments on commit eab5634

Please sign in to comment.