mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 07:46:15 +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");
|
||||
if (override)
|
||||
return strtod(override, NULL);
|
||||
return strtol(override, NULL, 0);
|
||||
else
|
||||
return __drm_device_id;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user