Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
Signed-off-by: Byoungro So <byoungro.so@intel.com>
  • Loading branch information
bso-intel committed Apr 11, 2024
1 parent dfae4d2 commit 6b21678
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sycl/include/sycl/detail/property_list_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ class PropertyListBase {
PropT>
get_property_helper() const {
const int PropKind = static_cast<int>(PropT::getKind());
assert(PropKind >= PropWithDataKind::PropWithDataKindSize &&
"The property is not found");
if (PropKind >= PropWithDataKind::PropWithDataKindSize)
assert(PropKind >= PropWithDataKind::PropWithDataKindSize &&
"The property is not found");

for (const std::shared_ptr<PropertyWithDataBase> &Prop : MPropsWithData)
if (Prop->isSame(PropKind))
Expand Down

0 comments on commit 6b21678

Please sign in to comment.