mirror of
https://github.com/alacritty/alacritty.git
synced 2026-11-30 00:51:19 +03:00
Merge pull request #60 from MagaTailor/master
Fix compilation on ARM/AARCH64
This commit is contained in:
commit
41f7fae34a
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1039,7 +1039,7 @@ impl ShaderProgram {
|
||||
|
||||
let shader = unsafe {
|
||||
let shader = gl::CreateShader(kind);
|
||||
gl::ShaderSource(shader, 1, &(source.as_ptr() as *const i8), len.as_ptr());
|
||||
gl::ShaderSource(shader, 1, &(source.as_ptr() as *const _), len.as_ptr());
|
||||
gl::CompileShader(shader);
|
||||
shader
|
||||
};
|
||||
|
||||
+1
-1
@@ -171,7 +171,7 @@ fn get_pw_entry(buf: &mut [i8; 1024]) -> Passwd {
|
||||
// Try and read the pw file.
|
||||
let uid = unsafe { libc::getuid() };
|
||||
let status = unsafe {
|
||||
libc::getpwuid_r(uid, &mut entry, buf.as_mut_ptr(), buf.len(), &mut res)
|
||||
libc::getpwuid_r(uid, &mut entry, buf.as_mut_ptr() as *mut _, buf.len(), &mut res)
|
||||
};
|
||||
|
||||
if status < 0 {
|
||||
|
||||
Reference in new issue
Block a user