Skip to content

Commit

Permalink
Fixed comparison of area access rights
Browse files Browse the repository at this point in the history
  • Loading branch information
lammertb committed May 10, 2024
1 parent 08d9697 commit 3cadf55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fins_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* This file is licensed under the MIT License as stated below
*
* Copyright (c) 2016-2019 Lammert Bies
* Copyright (c) 2016-2024 Lammert Bies
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -161,7 +161,7 @@ const struct fins_area_tp *XX_finslib_search_area( struct fins_sys_tp *sys, cons

if ( fins_area[a].plc_mode != sys->plc_mode ) { a++; continue; }
if ( fins_area[a].bits != bits ) { a++; continue; }
if ( ( fins_area[a].access | accs ) == 0x00000000 ) { a++; continue; }
if ( ( fins_area[a].access & accs ) == 0x00000000 ) { a++; continue; }
if ( fins_area[a].force != force ) { a++; continue; }
if ( fins_area[a].low_id > address->main_address ) { a++; continue; }
if ( fins_area[a].high_id < address->main_address ) { a++; continue; }
Expand Down

0 comments on commit 3cadf55

Please sign in to comment.