Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make parse_simple_number impossible to reach end without returning
Make sure that it's not possible to reach the end of the function without returning or throwing. This fixes a compiler warning about this. Also change the comments from // style to /* */ which is MoarVM's recommended style. Make an if else chain into a switch for greater clairity. Remove some else's that were unneeded.
- Loading branch information
Showing
1 changed file
with
19 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters