e8b25f46b8
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
From ac5743244bd889c7596f53f0513cf645a682dcaa Mon Sep 17 00:00:00 2001
|
|
From: Igor Gnatenko <ignatenko@src.gnome.org>
|
|
Date: Sun, 24 Jun 2018 18:03:34 +0200
|
|
Subject: [PATCH] fix casting in filter_related()
|
|
|
|
Fixes: https://gitlab.gnome.org/GNOME/librsvg/issues/302
|
|
Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org>
|
|
---
|
|
rsvg_internals/src/drawing_ctx.rs | 2 +-
|
|
rsvg_internals/src/filters/ffi.rs | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs
|
|
index f7d8c60e..f3f4f02f 100644
|
|
--- a/rsvg_internals/src/drawing_ctx.rs
|
|
+++ b/rsvg_internals/src/drawing_ctx.rs
|
|
@@ -333,7 +333,7 @@ impl<'a> DrawingCtx {
|
|
node,
|
|
&output,
|
|
self,
|
|
- "2103".as_ptr() as *const i8,
|
|
+ "2103".as_ptr() as *const libc::c_char,
|
|
))
|
|
} else {
|
|
None
|
|
diff --git a/rsvg_internals/src/filters/ffi.rs b/rsvg_internals/src/filters/ffi.rs
|
|
index 8a4e04d7..3a333cbd 100644
|
|
--- a/rsvg_internals/src/filters/ffi.rs
|
|
+++ b/rsvg_internals/src/filters/ffi.rs
|
|
@@ -91,7 +91,7 @@ pub fn filter_render(
|
|
let mut channelmap_arr = [0; 4];
|
|
unsafe {
|
|
for i in 0..4 {
|
|
- channelmap_arr[i] = i32::from(*channelmap.offset(i as isize) - '0' as i8);
|
|
+ channelmap_arr[i] = i32::from(*channelmap.offset(i as isize) - '0' as c_char);
|
|
}
|
|
}
|
|
|
|
--
|
|
2.18.0.rc2
|
|
|