Skip to content

Commit d467648

Browse files
resyntax-ci[bot]rfindler
authored andcommitted
Fix 2 occurrences of zero-comparison-to-negative?
This expression is equivalent to calling the `negative?` predicate.
1 parent 96784de commit d467648

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drracket-core-lib/drracket/private/language.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@
428428
(send rdc set-smoothing 'aligned)
429429
(send rdc set-clipping-rect 0 0 aw ah)
430430
(draw-pict pict rdc
431-
(+ (if (< w 0) aw 0) l-pad)
432-
(+ (if (< h 0) ah 0) t-pad))
431+
(+ (if (negative? w) aw 0) l-pad)
432+
(+ (if (negative? h) ah 0) t-pad))
433433
(define recorded-datum (send rdc get-recorded-datum))
434434
(new pict-snip:pict-snip% [w aw] [h ah] [d d] [a a] [recorded-datum recorded-datum]))
435435

0 commit comments

Comments
 (0)