linksplatform / linksplatform/Data.Triplets.Kernel

Change error status code

Open
#12 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Here is: https://github.com/Tynkute/Data.Triplets.Kernel/blob/17346c056451118a2b2df1a96458b6fc6c941795/Platform.Data.Triplets.Kernel/Common.h#L56-L59
```c
#define SUCCESS_RESULT 1
#define succeeded(x) (SUCCESS_RESULT == (x))
#define ERROR_RESULT 0
#define failed(x) SUCCESS_RESULT != (x)
```
ERROR_RESULT equals to zero, but usually zero means no errors. We need to swap the numbers and make sure nothing breaks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with Common.h at lines 56-59, then inspect usages of SUCCESS_RESULT, ERROR_RESULT, succeeded, and failed across the library. The change is complete when the result-code values match the requested convention and existing success and failure checks remain consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.