summaryrefslogtreecommitdiffstats
path: root/src/commonlib/bsd/gcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commonlib/bsd/gcd.c')
-rw-r--r--src/commonlib/bsd/gcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commonlib/bsd/gcd.c b/src/commonlib/bsd/gcd.c
index 92b601e8d01d..fbc8103a32ee 100644
--- a/src/commonlib/bsd/gcd.c
+++ b/src/commonlib/bsd/gcd.c
@@ -4,9 +4,9 @@
#include <commonlib/bsd/helpers.h>
#include <stdint.h>
-uint32_t gcd32(uint32_t a, uint32_t b)
+uint64_t gcd(uint64_t a, uint64_t b)
{
- uint32_t c;
+ uint64_t c;
if (a == 0 || b == 0)
return MAX(a, b);