mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-21 21:49:57 +00:00
[PR #1756] [MERGED] FIX: ARM64 build: c_char initialization #2478
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1756
Author: @x15sr71
Created: 10/21/2025
Status: ✅ Merged
Merged: 10/22/2025
Merged by: @prateekmedia
Base:
master← Head:fix/c_char_arm64📝 Commits (1)
9d5aec6Fix ARM64 build: c_char initialization📊 Changes
2 files changed (+2 additions, -1 deletions)
View changed files
📝
docs/CHANGES.TXT(+1 -0)📝
src/rust/src/avc/nal.rs(+1 -1)📄 Description
Description
Fixes #1755
This PR fixes a compilation failure on ARM64/AArch64 Linux systems. The build was failing with:
Problem
The
c_chartype in Rust is platform-dependent:c_charisi8(signed)c_charisu8(unsigned)The original code used
c_char::from(0i8)which worked on x86_64 but failed on ARM64 because Rust doesn't implementFrom<i8>foru8.Solution
Changed line 599 in
src/rust/src/avc/nal.rs:Before:
After:
Using
0 as c_charworks on all architectures because zero is valid for both signed and unsigned char types.Testing
Verified the fix on both architectures:
References
c_chardocs: https://doc.rust-lang.org/stable/std/os/raw/type.c_char.htmlcharsignedness is implementation-definedImpact
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.