[Vm-dev] Small doubt in B2DPlugin
Nicolas Cellier
nicolas.cellier.aka.nice at gmail.com
Fri Apr 29 20:14:16 UTC 2016
Hi,
in stepToFirstWideBezierIn: bezier at: yValue
I see this;
xDir := ((self bezierUpdateDataOf: bezier) at: GBUpdateDX).
xDir = 0 ifTrue:[((self bezierUpdateDataOf: bezier) at: GBUpdateDDX)].
xDir >= 0 ifTrue:[xDir := 1] ifFalse:[xDir := -1].
I wonder if the intention of 2nd line is not
xDir = 0 ifTrue:[xDir := ((self bezierUpdateDataOf: bezier) at:
GBUpdateDDX)].
because otherwise the statement has no effect
(it would warn -Wunused-value)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160429/9eef528e/attachment.htm
More information about the Vm-dev
mailing list