mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Fix amd64 build
PR: ports/92658 Submitted by: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net> Reworked by: vd Approved by: garga (mentor)
This commit is contained in:
parent
3d82afa955
commit
134ef31226
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155408
20
sysutils/heirloom/files/patch-spell_spellin.c
Normal file
20
sysutils/heirloom/files/patch-spell_spellin.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- spell/spellin.c.orig Fri Feb 3 19:13:19 2006
|
||||
+++ spell/spellin.c Fri Feb 3 19:19:20 2006
|
||||
@@ -77,6 +77,7 @@
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
int32_t h, k, d;
|
||||
+ unsigned hu;
|
||||
int32_t i;
|
||||
int32_t count;
|
||||
int32_t w1;
|
||||
@@ -103,7 +104,8 @@
|
||||
z = huff((1L<<HASHWIDTH)/atof(argv[1]));
|
||||
fprintf(stderr, "%s: expected code widths = %f\n",
|
||||
argv[0], z);
|
||||
- for (count = 0; scanf("%lo", (long *)&h) == 1; ++count) {
|
||||
+ for (count = 0; scanf("%o", &hu) == 1; ++count) {
|
||||
+ h = (int32_t)hu;
|
||||
if ((t = h >> (HASHWIDTH - INDEXWIDTH)) != u) {
|
||||
if (bp != B)
|
||||
wp++;
|
Loading…
Reference in New Issue
Block a user