|
Lines 847-853
Link Here
|
| 847 |
out_mask = g_new(char, bytes); |
847 |
out_mask = g_new(char, bytes); |
| 848 |
for (b = 0; b < bytes; b++) |
848 |
for (b = 0; b < bytes; b++) |
| 849 |
{ |
849 |
{ |
| 850 |
int shift = (bytes - b - 1) * 8; |
850 |
int shift = (big_endian ? (bytes - b - 1) : b) * 8; |
| 851 |
out_mask[b] = (mask >> shift) & 0xff; |
851 |
out_mask[b] = (mask >> shift) & 0xff; |
| 852 |
} |
852 |
} |
| 853 |
} |
853 |
} |