Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | libxxf86dga: fix compilation with x32 toolchain | Nitin A Kamble | 2012-01-09 | 1 | -0/+30 |
Fix type conversion for x32. For x32 the off_t is 64bit and pointers are 32bit. so the conversion of pointer to off_t was resulting into this error: | XF86DGA2.c:931:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | cc1: some warnings being treated as errors | | make[2]: *** [XF86DGA2.lo] Error 1 Fixed it by typecasting pointer into unsigned long 1st and then again typecasting unsigned long to off_t. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> |