diff options
| author | Paul Eggert | 2014-12-18 13:16:16 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-12-18 13:16:41 -0800 |
| commit | d8183f8fef11d654d0aae2b24eddcdfad6d63164 (patch) | |
| tree | b997cc5645e2bee58ee895612183886100873bef /src | |
| parent | 22e37afd18bd35d5ecd41189232aa2281d1d1bf5 (diff) | |
| download | emacs-d8183f8fef11d654d0aae2b24eddcdfad6d63164.tar.gz emacs-d8183f8fef11d654d0aae2b24eddcdfad6d63164.zip | |
* image.c (svg_load): Fix pointer signedness.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/image.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6fabfb49ea4..3ec45063233 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-12-18 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * image.c (svg_load): Fix pointer signedness. | ||
| 4 | |||
| 1 | 2014-12-18 Martin Rudalics <rudalics@gmx.at> | 5 | 2014-12-18 Martin Rudalics <rudalics@gmx.at> |
| 2 | 6 | ||
| 3 | * frame.c (frame_windows_min_size): New argument IGNORE. | 7 | * frame.c (frame_windows_min_size): New argument IGNORE. |
diff --git a/src/image.c b/src/image.c index ceec3ce46b1..a73a7251753 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -8601,7 +8601,7 @@ static bool svg_image_p (Lisp_Object object); | |||
| 8601 | static bool svg_load (struct frame *f, struct image *img); | 8601 | static bool svg_load (struct frame *f, struct image *img); |
| 8602 | 8602 | ||
| 8603 | static bool svg_load_image (struct frame *, struct image *, | 8603 | static bool svg_load_image (struct frame *, struct image *, |
| 8604 | unsigned char *, ptrdiff_t, char*); | 8604 | unsigned char *, ptrdiff_t, char *); |
| 8605 | 8605 | ||
| 8606 | /* The symbol `svg' identifying images of this type. */ | 8606 | /* The symbol `svg' identifying images of this type. */ |
| 8607 | 8607 | ||
| @@ -8807,7 +8807,7 @@ svg_load (struct frame *f, struct image *img) | |||
| 8807 | return 0; | 8807 | return 0; |
| 8808 | } | 8808 | } |
| 8809 | /* If the file was slurped into memory properly, parse it. */ | 8809 | /* If the file was slurped into memory properly, parse it. */ |
| 8810 | success_p = svg_load_image (f, img, contents, size, SSDATA(file)); | 8810 | success_p = svg_load_image (f, img, contents, size, SSDATA (file)); |
| 8811 | xfree (contents); | 8811 | xfree (contents); |
| 8812 | } | 8812 | } |
| 8813 | /* Else its not a file, its a lisp object. Load the image from a | 8813 | /* Else its not a file, its a lisp object. Load the image from a |
| @@ -8824,8 +8824,8 @@ svg_load (struct frame *f, struct image *img) | |||
| 8824 | } | 8824 | } |
| 8825 | original_filename = BVAR (current_buffer, filename); | 8825 | original_filename = BVAR (current_buffer, filename); |
| 8826 | success_p = svg_load_image (f, img, SDATA (data), SBYTES (data), | 8826 | success_p = svg_load_image (f, img, SDATA (data), SBYTES (data), |
| 8827 | NILP(original_filename) ? | 8827 | (NILP (original_filename) ? NULL |
| 8828 | NULL : SDATA(original_filename)); | 8828 | : SSDATA (original_filename))); |
| 8829 | } | 8829 | } |
| 8830 | 8830 | ||
| 8831 | return success_p; | 8831 | return success_p; |
| @@ -8843,7 +8843,7 @@ svg_load_image (struct frame *f, /* Pointer to emacs frame structure. * | |||
| 8843 | struct image *img, /* Pointer to emacs image structure. */ | 8843 | struct image *img, /* Pointer to emacs image structure. */ |
| 8844 | unsigned char *contents, /* String containing the SVG XML data to be parsed. */ | 8844 | unsigned char *contents, /* String containing the SVG XML data to be parsed. */ |
| 8845 | ptrdiff_t size, /* Size of data in bytes. */ | 8845 | ptrdiff_t size, /* Size of data in bytes. */ |
| 8846 | char *filename) /* Name of SVG file being loaded. */ | 8846 | char *filename) /* Name of SVG file being loaded. */ |
| 8847 | { | 8847 | { |
| 8848 | RsvgHandle *rsvg_handle; | 8848 | RsvgHandle *rsvg_handle; |
| 8849 | RsvgDimensionData dimension_data; | 8849 | RsvgDimensionData dimension_data; |