mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 15:56:33 +00:00
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>
This commit is contained in:
parent
eaa7e6183c
commit
5b93daf5cb
@ -133,7 +133,7 @@ intel_get_drm_devid(int fd)
|
|||||||
|
|
||||||
override = getenv("INTEL_DEVID_OVERRIDE");
|
override = getenv("INTEL_DEVID_OVERRIDE");
|
||||||
if (override)
|
if (override)
|
||||||
return strtod(override, NULL);
|
return strtol(override, NULL, 0);
|
||||||
else
|
else
|
||||||
return __drm_device_id;
|
return __drm_device_id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user