Content-Length: 258866 | pFad | http://github.com/ascii-boxes/boxes/commit/#start-of-content

6849CE33 Fix failing test 150_tag_config_invalid_tags on big-endian systems · ascii-boxes/boxes@ba901ba · GitHub
Skip to content

Commit ba901ba

Browse files
Gayathri-Berlitsjensen
authored andcommitted
Fix failing test 150_tag_config_invalid_tags on big-endian systems
used (ucs4_t)ascii; in the to ensure compatibility with both little and big-endian systems. Fixes:#130
1 parent bae3528 commit ba901ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/unicode.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ ucs4_t to_utf32(char ascii)
154154
{
155155
ucs4_t c = char_nul;
156156
if (ascii >= 0x20 && ascii < 0x7f) {
157-
char *bytes = (char *) (&c);
158-
bytes[0] = ascii;
157+
c = (ucs4_t)ascii; // Store the ASCII value directly in c
159158
}
160159
return c;
161160
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ascii-boxes/boxes/commit/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy