rts: Explicit state that CONSTR tag field is zero-based
authorBen Gamari <ben@well-typed.com>
Thu, 16 May 2019 16:47:59 +0000 (12:47 -0400)
committerBen Gamari <ben@well-typed.com>
Thu, 16 May 2019 16:47:59 +0000 (12:47 -0400)
This was a bit unclear as we use both one-based and zero-based
tags in GHC.

[skip ci]

includes/rts/storage/InfoTables.h

index db50d16..5c8296a 100644 (file)
@@ -189,7 +189,7 @@ typedef struct StgInfoTable_ {
     StgHalfWord     type;       /* closure type */
     StgSRTField     srt;
        /* In a CONSTR:
-            - the constructor tag
+            - the zero-based constructor tag
           In a FUN/THUNK
             - if USE_INLINE_SRT_FIELD
               - offset to the SRT (or zero if no SRT)