9e3815
commit c833a6241893c7e566a5eed762661942e4cd90d3
9e3815
Author: Todd Lewis <utoddl@gmail.com>
9e3815
Date:   Mon Oct 29 18:33:48 2018 +0000
9e3815
9e3815
    Fix user and group name to number conversion for uid/gid above 2^31.
9e3815
9e3815
diff --git a/pgrep.c b/pgrep.c
9e3815
index bde7448..8b82a54 100644
9e3815
--- a/pgrep.c
9e3815
+++ b/pgrep.c
9e3815
@@ -280,7 +280,7 @@ static int conv_uid (const char *restrict name, struct el *restrict e)
9e3815
 		xwarnx(_("invalid user name: %s"), name);
9e3815
 		return 0;
9e3815
 	}
9e3815
-	e->num = pwd->pw_uid;
9e3815
+	e->num = (int) pwd->pw_uid;
9e3815
 	return 1;
9e3815
 }
9e3815
 
9e3815
@@ -297,7 +297,7 @@ static int conv_gid (const char *restrict name, struct el *restrict e)
9e3815
 		xwarnx(_("invalid group name: %s"), name);
9e3815
 		return 0;
9e3815
 	}
9e3815
-	e->num = grp->gr_gid;
9e3815
+	e->num = (int) grp->gr_gid;
9e3815
 	return 1;
9e3815
 }
9e3815