By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 2493
Collapse All | Expand All

(-)a/kernel/kls_dds/dds.cpp (-2 / +8 lines)
Lines 564-570 static void FREE_ROWS(RGBAP **A, const int H) Link Here
564
564
565
		void GetBits( uchar bit_array[16] )
565
		void GetBits( uchar bit_array[16] )
566
		{
566
		{
567
			uint b = (uint &) bits[0];
567
			// uint b = (uint &) bits[0];
568
			/* avoid a warning
569
			 * "dereferencing type-punned pointer will break strict-aliasing rules"
570
			 * TODO: check endianness issues (but that was probably broken anyway) */
571
			uint b;
572
			memcpy(&b, &bits[0], sizeof(b));
568
			bit_array[0] = uchar(b & 0x07); b >>= 3;
573
			bit_array[0] = uchar(b & 0x07); b >>= 3;
569
			bit_array[1] = uchar(b & 0x07); b >>= 3;
574
			bit_array[1] = uchar(b & 0x07); b >>= 3;
570
			bit_array[2] = uchar(b & 0x07); b >>= 3;
575
			bit_array[2] = uchar(b & 0x07); b >>= 3;
Lines 574-580 static void FREE_ROWS(RGBAP **A, const int H) Link Here
574
			bit_array[6] = uchar(b & 0x07); b >>= 3;
579
			bit_array[6] = uchar(b & 0x07); b >>= 3;
575
			bit_array[7] = uchar(b & 0x07); b >>= 3;
580
			bit_array[7] = uchar(b & 0x07); b >>= 3;
576
581
577
			b = (uint &) bits[3];
582
			// b = (uint &) bits[3];
583
			memcpy(&b, &bits[3], sizeof(b));
578
			bit_array[8] = uchar(b & 0x07); b >>= 3;
584
			bit_array[8] = uchar(b & 0x07); b >>= 3;
579
			bit_array[9] = uchar(b & 0x07); b >>= 3;
585
			bit_array[9] = uchar(b & 0x07); b >>= 3;
580
			bit_array[10] = uchar(b & 0x07); b >>= 3;
586
			bit_array[10] = uchar(b & 0x07); b >>= 3;
(-)a/kernel/kls_hdr/fmt_codec_hdr.cpp (-2 / +3 lines)
Lines 136-143 s32 fmt_codec::read_scanline(RGBA *scan) Link Here
136
        if (e != 0)
136
        if (e != 0)
137
	    e = (e - 1) << 23;
137
	    e = (e - 1) << 23;
138
138
139
        t = *(float *)&e;
139
        // t = *(float *)&e;
140
140
        /* avoid "dereferencing type-punned pointer will break strict-aliasing rules" warning */
141
        memcpy(&t, &e, sizeof(t));
141
        (scan + i)->r = u8((r / 255.0f) * t);
142
        (scan + i)->r = u8((r / 255.0f) * t);
142
        (scan + i)->g = u8((g / 255.0f) * t);
143
        (scan + i)->g = u8((g / 255.0f) * t);
143
        (scan + i)->b = u8((b / 255.0f) * t);
144
        (scan + i)->b = u8((b / 255.0f) * t);

Return to bug 2493