diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-18 16:06:15 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-02-18 16:09:28 +0000 |
commit | 5b93daf5cb40f79b948029588f059b0b61638590 (patch) | |
tree | dbf73a89fc98fc849731aec0b1457b47881908d0 /lib/intel_chipset.c | |
parent | eaa7e6183cedee10acfa321ac3c66bfe58c0ed5a (diff) |
lib: Use strtol not strtod for overiding the PCI ID
Simply to avoid the roundtrip through floating points and any extra
headaches from worrying about the implications
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/intel_chipset.c')
-rw-r--r-- | lib/intel_chipset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/intel_chipset.c b/lib/intel_chipset.c index a3085734..3b3e03bc 100644 --- a/lib/intel_chipset.c +++ b/lib/intel_chipset.c @@ -133,7 +133,7 @@ intel_get_drm_devid(int fd) override = getenv("INTEL_DEVID_OVERRIDE"); if (override) - return strtod(override, NULL); + return strtol(override, NULL, 0); else return __drm_device_id; } |