diff options
Diffstat (limited to 'rts/RtsAPI.c')
-rw-r--r-- | rts/RtsAPI.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/RtsAPI.c b/rts/RtsAPI.c index 8946f9d840..8fd1917392 100644 --- a/rts/RtsAPI.c +++ b/rts/RtsAPI.c @@ -367,7 +367,7 @@ rts_getBool (HaskellObj p) const StgInfoTable *info; info = get_itbl((const StgClosure *)UNTAG_CONST_CLOSURE(p)); - if (info->has_srt == 0) { // has_srt is the constructor tag + if (info->srt == 0) { // srt is the constructor tag return 0; } else { return 1; |