mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 06:43:01 +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:
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user