summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKA/Sources
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-28 16:43:23 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-08-28 16:45:54 +0200
commiteea552909be6c377a7e62d7679846248cb2e1fef (patch)
treeefd55c862959ac2fcb7bac4dd7480f70ad7979c7 /dev/ZKA/Sources
parent8316384e8ce5c79ded405d690046fa801d93ebd2 (diff)
[FIX] Use cLastExitCode as unsigned variable, refactored the code to
match the changes. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/Sources')
-rw-r--r--dev/ZKA/Sources/ProcessScheduler.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/ZKA/Sources/ProcessScheduler.cxx b/dev/ZKA/Sources/ProcessScheduler.cxx
index db11b4e9..2198cd42 100644
--- a/dev/ZKA/Sources/ProcessScheduler.cxx
+++ b/dev/ZKA/Sources/ProcessScheduler.cxx
@@ -28,7 +28,7 @@ namespace Kernel
/// @brief Exit Code global variable.
/***********************************************************************************/
- Int32 cLastExitCode = 0U;
+ UInt32 cLastExitCode = 0U;
/// @brief The main process object.
ProcessScheduler* cProcessScheduler = nullptr;
@@ -36,7 +36,7 @@ namespace Kernel
/// @brief Gets the last exit code.
/// @note Not thread-safe.
/// @return Int32 the last exit code.
- const Int32& sched_get_exit_code(void) noexcept
+ const UInt32& sched_get_exit_code(void) noexcept
{
return cLastExitCode;
}
@@ -60,7 +60,7 @@ namespace Kernel
/// @brief Gets the local last exit code.
/// @note Not thread-safe.
/// @return Int32 the last exit code.
- const Int32& PROCESS_HEADER_BLOCK::GetExitCode() noexcept
+ const UInt32& PROCESS_HEADER_BLOCK::GetExitCode() noexcept
{
return this->fLastExitCode;
}