File gcc-undefined-ops.patch of Package MozillaFirefox (Revision 8cd22827923d95895dfe69b989cec2ae)
Currently displaying revision 8cd22827923d95895dfe69b989cec2ae, show latest
x
1
--- layout/base/nsCSSRendering.cpp.orig 2006-10-25 23:59:19.000000000 +0200
2
+++ layout/base/nsCSSRendering.cpp 2006-10-26 00:00:04.000000000 +0200
3
4
FillOrInvertRect(aContext, dashRect.x, borderOutside.y,dashRect.width, dashRect.height-adjust,isInvert);
5
FillOrInvertRect(aContext,dashRect.x,(borderOutside.YMost()-(dashRect.height-adjust)),dashRect.width, dashRect.height-adjust,isInvert);
6
currRect.y += (dashRect.height-adjust);
7
- temp = temp-= (dashRect.height-adjust);
8
+ temp -= (dashRect.height-adjust);
9
} else {
10
adjust = (temp%dashRect.width)/2; // adjust a tad longer
11
// draw in the left and right
12
FillOrInvertRect(aContext, dashRect.x, borderOutside.y,dashRect.width, dashRect.height+adjust,isInvert);
13
FillOrInvertRect(aContext, dashRect.x,(borderOutside.YMost()-(dashRect.height+adjust)),dashRect.width, dashRect.height+adjust,isInvert);
14
currRect.y += (dashRect.height+adjust);
15
- temp = temp-= (dashRect.height+adjust);
16
+ temp -= (dashRect.height+adjust);
17
}
18
19
if( temp > ywidth)
20
21
FillOrInvertRect(aContext, borderOutside.x,dashRect.y,dashRect.width-adjust,dashRect.height,isInvert);
22
FillOrInvertRect(aContext, (borderOutside.XMost()-(dashRect.width-adjust)),dashRect.y,dashRect.width-adjust,dashRect.height,isInvert);
23
currRect.x += (dashRect.width-adjust);
24
- temp = temp-= (dashRect.width-adjust);
25
+ temp -= (dashRect.width-adjust);
26
} else {
27
adjust = (temp%dashRect.width)/2;
28
// draw in the left and right
29
FillOrInvertRect(aContext, borderOutside.x,dashRect.y,dashRect.width+adjust,dashRect.height,isInvert);
30
FillOrInvertRect(aContext, (borderOutside.XMost()-(dashRect.width+adjust)),dashRect.y,dashRect.width+adjust,dashRect.height,isInvert);
31
currRect.x += (dashRect.width+adjust);
32
- temp = temp-= (dashRect.width+adjust);
33
+ temp -= (dashRect.width+adjust);
34
}
35
36
37
--- layout/xul/base/src/nsBox.cpp.orig 2006-10-26 00:00:26.000000000 +0200
38
+++ layout/xul/base/src/nsBox.cpp 2006-10-26 00:01:30.000000000 +0200
39
40
while (box) {
41
nsRect* overflowArea = box->GetOverflowAreaProperty();
42
nsRect bounds = overflowArea ? *overflowArea + box->GetPosition() :
43
- bounds = box->GetRect();
44
+ box->GetRect();
45
rect.UnionRect(rect, bounds);
46
47
box->GetNextBox(&box);
48
--- intl/unicharutil/src/nsEntityConverter.cpp.orig 2005-04-02 20:44:00.000000000 +0200
49
+++ intl/unicharutil/src/nsEntityConverter.cpp 2006-10-26 00:07:24.000000000 +0200
50
51
if (IS_HIGH_SURROGATE(inString[i]) &&
52
i + 2 < len &&
53
IS_LOW_SURROGATE(inString[i + 1])) {
54
- key.AppendInt(SURROGATE_TO_UCS4(inString[i], inString[++i]), 10);
55
+ key.AppendInt(SURROGATE_TO_UCS4(inString[i], inString[i + 1]), 10);
56
+ ++i;
57
}
58
else {
59
key.AppendInt(inString[i],10);
60
--- content/events/src/nsEventStateManager.cpp.orig 2006-08-06 00:19:17.000000000 +0200
61
+++ content/events/src/nsEventStateManager.cpp 2006-10-26 00:11:16.000000000 +0200
62
63
do_QueryInterface(GetDocumentOuterWindow(mDocument));
64
if (newWindow) {
65
nsIFocusController *newFocusController =
66
- newFocusController = newWindow->GetRootFocusController();
67
+ newWindow->GetRootFocusController();
68
nsCOMPtr<nsPIDOMWindow> oldWindow =
69
do_QueryInterface(GetDocumentOuterWindow(gLastFocusedDocument));
70
if (oldWindow) {
71
--- netwerk/cache/src/nsDiskCacheMap.h.orig 2006-02-04 23:01:22.000000000 +0100
72
+++ netwerk/cache/src/nsDiskCacheMap.h 2006-10-26 00:15:09.000000000 +0200
73
74
75
// set blockCount
76
NS_ASSERTION( (blockCount>=1) && (blockCount<=4),"invalid block count");
77
- blockCount = --blockCount;
78
+ --blockCount;
79
mDataLocation |= (blockCount << eExtraBlocksOffset) & eExtraBlocksMask;
80
81
mDataLocation |= eLocationInitializedMask;
82
83
84
// set blockCount
85
NS_ASSERTION( (blockCount>=1) && (blockCount<=4),"invalid block count");
86
- blockCount = --blockCount;
87
+ --blockCount;
88
mMetaLocation |= (blockCount << eExtraBlocksOffset) & eExtraBlocksMask;
89
90
mMetaLocation |= eLocationInitializedMask;
91