fix 1 segfault

This commit is contained in:
Luke Boswell 2025-08-12 09:04:13 +10:00
parent 0f59ec41f4
commit cd3eb27e32
No known key found for this signature in database
GPG key ID: 54A7324B1B975757

View file

@ -151,7 +151,7 @@ pub fn findIdent(self: *const Self, text: []const u8) ?Ident.Idx {
/// Retrieves the text of an identifier by its index.
pub fn getIdent(self: *const Self, idx: Ident.Idx) []const u8 {
return self.getIdent(idx);
return self.idents.getText(idx);
}
/// Returns a const reference to the identifier store.