mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-03 11:12:13 +00:00
26372dce2a
There was a GSoC 2015 from Colin Lord to bring to the base system a recent version of Ficl. pfg@ found many bugs in ficl4. Among them: - Fix ficlInstructionPick bug. Pick instructions from 0, not 1. Credit to Toomas Soome from the Illumos project. - Fix some math bugs. Credit to Toomas Soome from the Illumos project. - Fix bug in Ficl stack preventing the stack from growing. Obtained from: http://sourceforge.net/p/ficl/mailman/message/26634755/ - Change rand and srand calls to random and srandom Fix those in the port. While here, unset MAKE_JOBS_UNSAFE as the port builds fine without it, and get rid of the DATA option that has no effect. PR: 207041 Submitted by: pfg Approved by: Pavel Volkov <pavelivolkov@gmail.com> (maintainer)
12 lines
500 B
C
12 lines
500 B
C
--- float.c.orig 2010-09-13 18:43:04 UTC
|
|
+++ float.c
|
|
@@ -159,7 +159,7 @@ static ficlInteger ficlFloatStackDisplay
|
|
{
|
|
struct stackContext *context = (struct stackContext *)c;
|
|
char buffer[64];
|
|
- sprintf(buffer, "[0x%08x %3d] %16f (0x%08x)\n", cell, context->count++, (double)(cell->f), cell->i);
|
|
+ sprintf(buffer, "[0x%08lx %3d] %16f (0x%08lx)\n", (long unsigned)cell, context->count++, (double)(cell->f), (long)cell->i);
|
|
ficlVmTextOut(context->vm, buffer);
|
|
return FICL_TRUE;
|
|
}
|