Skip to content

Commit

Permalink
Replace assert with _ASSERTE
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Jun 21, 2022
1 parent 1f7ce1c commit cc72139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/pal/src/misc/sysinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,8 @@ PAL_GetLogicalProcessorCacheSizeFromOS()
char path_to_size_file[] = "/sys/devices/system/cpu/cpu0/cache/index-/size";
char path_to_level_file[] = "/sys/devices/system/cpu/cpu0/cache/index-/level";
int index = 40;
assert(path_to_size_file[index] == '-');
assert(path_to_level_file[index] == '-');
_ASSERTE(path_to_size_file[index] == '-');
_ASSERTE(path_to_level_file[index] == '-');

for (int i = 0; i < 5; i++)
{
Expand Down

0 comments on commit cc72139

Please sign in to comment.