patches/pan-01-gcclvalues.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 1226 691721c4aaf2
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1226
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
     1
--- pan/base/msort.c.orig	Mon Jun 23 06:56:52 2008
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
     2
+++ pan/base/msort.c	Mon Jun 23 07:00:17 2008
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
     3
@@ -65,14 +65,18 @@
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
     4
 			if ((*cmp) (b1, b2) <= 0)
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
     5
 			{
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
     6
 				--n1;
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
     7
-				*((unsigned long int *) tmp)++ =
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
     8
-					*((unsigned long int *) b1)++;
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
     9
+				*((unsigned long int *) tmp) =
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    10
+					*((unsigned long int *) b1);
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    11
+				tmp = (char *) (((unsigned long int *) tmp) + 1);
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    12
+				b1 = (char *) (((unsigned long int *) b1) + 1);
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    13
 			}
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    14
 			else
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    15
 			{
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    16
 				--n2;
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    17
-				*((unsigned long int *) tmp)++ =
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    18
-					*((unsigned long int *) b2)++;
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    19
+				*((unsigned long int *) tmp) =
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    20
+					*((unsigned long int *) b2);
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    21
+				tmp = (char *) (((unsigned long int *) tmp) + 1);
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    22
+				b2 = (char *) (((unsigned long int *) b2) + 1);
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    23
 			}
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    24
 		}
691721c4aaf2 it's good to actually add patches to the repository
rtarnell
parents:
diff changeset
    25
 	else