1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- patch potential amd64 problem with assuming long is 32bits

PR:		ports/163939
Submitted by:	maintainer
Approved by:	gabor (mentor, implicit)
This commit is contained in:
Michael Scheidell 2012-01-10 04:48:21 +00:00
parent c18738cf37
commit 8f5f7d8017
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288862
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= ctwm
PORTVERSION= 3.8.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= x11-wm
MASTER_SITES= http://ctwm.free.lp.se/dist/ \

View File

@ -0,0 +1,11 @@
--- util.c.orig 2012-01-08 16:51:48.245308175 -0600
+++ util.c 2012-01-08 16:51:52.168309618 -0600
@@ -3941,7 +3941,7 @@
#ifdef JPEG
unsigned short int *buffer_16bpp;
-long *buffer_32bpp;
+uint32_t *buffer_32bpp;
static void convert_for_16 (int w, int x, int y, int r, int g, int b) {
buffer_16bpp [y * w + x] = ((r >> 3) << 11) + ((g >> 2) << 5) + (b >> 3);