Skip to content

Commit 1686357

Browse files
committed
Attempt CI fix #4
1 parent dd10ee5 commit 1686357

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RichString.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void RichString_setAttrn_preserveWithStandout(RichString* this, int attrs, int s
164164
finish = CLAMP(finish, 0, this->chlen - 1);
165165

166166
// Extract the foreground and background color indexes from the passed attrs
167-
short passed_color_pair_number = PAIR_NUMBER(attrs);
167+
short passed_color_pair_number = (short)PAIR_NUMBER(attrs);
168168
short passed_fg_color = -1, passed_bg_color = -1;
169169
if (passed_color_pair_number != 0) {
170170
pair_content(passed_color_pair_number, &passed_fg_color, &passed_bg_color);
@@ -173,7 +173,7 @@ void RichString_setAttrn_preserveWithStandout(RichString* this, int attrs, int s
173173
cchar_t* ch = this->chptr + start;
174174
for (int i = start; i <= finish; i++) {
175175
// Extract foreground and background color indexes from the current char
176-
short currentCharPairNum = PAIR_NUMBER(ch->attr);
176+
short currentCharPairNum = (short)PAIR_NUMBER(ch->attr);
177177
short before_fg_color = -1, before_bg_color = -1;
178178
if (currentCharPairNum != 0) {
179179
pair_content(currentCharPairNum, &before_fg_color, &before_bg_color);
@@ -253,7 +253,7 @@ void RichString_setAttrn_preserveWithStandout(RichString* this, int attrs, int s
253253
finish = CLAMP(finish, 0, this->chlen - 1);
254254

255255
// Extract the foreground and background color indexes from the passed attrs
256-
short passed_color_pair_number = PAIR_NUMBER(attrs);
256+
short passed_color_pair_number = (short)PAIR_NUMBER(attrs);
257257
short passed_fg_color = -1, passed_bg_color = -1;
258258
if (passed_color_pair_number != 0) {
259259
pair_content(passed_color_pair_number, &passed_fg_color, &passed_bg_color);
@@ -264,7 +264,7 @@ void RichString_setAttrn_preserveWithStandout(RichString* this, int attrs, int s
264264
int current_attrs = this->chptr[i] & ~A_CHARTEXT; // Extract attributes
265265

266266
// Extract foreground and background color indexes from the current char
267-
short currentCharPairNum = PAIR_NUMBER(current_attrs);
267+
short currentCharPairNum = (short)PAIR_NUMBER(current_attrs);
268268
short before_fg_color = -1, before_bg_color = -1;
269269
if (currentCharPairNum != 0) {
270270
pair_content(currentCharPairNum, &before_fg_color, &before_bg_color);

0 commit comments

Comments
 (0)