[Seed7-users] Low Limit with genPointList
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Zaakari <Za...@pr...> - 2021-12-14 20:46:11
|
Hey Thomas, I ran across what seems to be a bug (or, perhaps, just an oversight) with the "genPointList" function in the "graph.s7i" library. For some reason, when I pass values in that are higher than 32767, then it throws a range error. Are these getting bound to small integers, perhaps? I'm using this function within "fpolyLine" to draw slanted rectangles, and need to be able to pass in large values in order to support magnifying the scene they are drawn in. Is there a way to draw a filled polygon without using "genPointList", or could it be modified to accept the full range of integers? It's probably not needed, but I attached a short script as an example to reproduce the issue. It contains some commented-out sections that show the path I took to get to the error, but the last (uncommented) section shows the issue most plainly. Thanks, Zachary |