Commit 0dc90c1d

0dc90c1dee30Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 1 file · ~1 modified

Description

Avoid a /* sequence inside the SP_INT_NIL block comment (-Wcomment)

Reword "+/-/*" to "add/sub/mul" so the comment no longer contains a nested comment-open. Cosmetic.

Co-Authored-By: Claude Opus 4.8 (1M context) [email protected]

Details

Commit
0dc90c1dee30
Parent
2de162f2b49a

lib/sp_types.hmodifiedView file

@@ -51,8 +51,8 @@
5151 the value. This affects ONLY int? (nullable-int) slots; a plain
5252 (non-nullable) int holding -2147483648 is fine, since it never
5353 consults sp_int_is_nil. The integer-overflow helpers deliberately do
54- NOT reserve this value (checking every +/-/* result against it would
55- cost the hot path the embedded build is trying to save). Code that
54+ NOT reserve this value (checking every add/sub/mul result against it
55+ would cost the hot path the embedded build is trying to save). Code that
5656 must store -2147483648 nullably on 32-bit should box it (poly) rather
5757 than use a flat int? slot. */
5858 #define SP_INT_NIL ((mrb_int)INTPTR_MIN)