Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
vala
vala
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 702
    • Issues 702
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 38
    • Merge Requests 38
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GNOME
  • valavala
  • Issues
  • #179

Closed
Open
Opened Mar 08, 2011 by bugzilla-migration@bugzilla-migrationReporter

Reverse string slice cannot handle final character

Submitted by Rikard Nordgren

Assigned to Michael 'Mickey' Lauer

Link to original bug (#644245)

Description

This short program compiles but gives a runtime error:

public static int main (string[] args) { string s = "Testing";

string slice = s[-3:0];
stdout.printf(slice + "\n");

return 0;

}

Error: ** (process:5817): CRITICAL **: string_slice: assertion `start <= end' failed

I expected this program to output "ing".

See also

  • Bug 571352
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
1.2
Milestone
1.2
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/vala#179