Skip to content

Commit d5f25ba

Browse files
authored
Fix array math
1 parent 2086a54 commit d5f25ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

genericPatcher/kern_start.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ PluginConfiguration ADDPR(config) {
2929
parseModuleVersion(xStringify(MODULE_VERSION)),
3030
LiluAPI::AllowNormal | LiluAPI::AllowInstallerRecovery,
3131
bootargOff,
32-
arrsize(bootargOff),
32+
sizeof(bootargOff)/sizeof(bootargOff[0]),
3333
bootargDebug,
34-
arrsize(bootargDebug),
34+
sizeof(bootargDebug)/sizeof(bootargDebug[0]),
3535
bootargBeta,
36-
arrsize(bootargBeta),
36+
sizeof(bootargBeta)/sizeof(bootargBeta[0]),
3737
KernelVersion::Yosemite,
3838
KernelVersion::HighSierra,
3939
[]() {

0 commit comments

Comments
 (0)