Skip to content

Commit

Permalink
Fixing #579
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutierrez committed Oct 24, 2014
1 parent 6965c79 commit 779f9e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Library/ClassMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ public function compile(CompilationContext $compilationContext)
break;

case 'char':
if (strlen($defaultValue) > 2) {
if (strlen($defaultValue) > 4) {
if (strlen($defaultValue) > 10) {
throw new CompilerException("Invalid char literal: '" . substr($defaultValue, 0, 10) . "...'", $variable->getOriginal());
} else {
Expand Down
2 changes: 1 addition & 1 deletion Library/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class Compiler
{
const VERSION = '0.5.4a';
const VERSION = '0.5.5a';

/**
* @var CompilerFile[]
Expand Down
6 changes: 3 additions & 3 deletions parser/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#define XX_QUESTION 8
#define XX_LIKELY 9
#define XX_UNLIKELY 10
#define XX_INSTANCEOF 11
#define XX_OR 12
#define XX_AND 13
#define XX_OR 11
#define XX_AND 12
#define XX_INSTANCEOF 13
#define XX_BITWISE_OR 14
#define XX_BITWISE_AND 15
#define XX_BITWISE_XOR 16
Expand Down
2 changes: 1 addition & 1 deletion parser/parser.lemon
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
%right REQUIRE .
%right QUESTION .
%right LIKELY UNLIKELY .
%left INSTANCEOF .
%left OR .
%left AND .
%left INSTANCEOF .
%left BITWISE_OR BITWISE_AND BITWISE_XOR BITWISE_SHIFTLEFT BITWISE_SHIFTRIGHT .
%left EQUALS IDENTICAL LESS GREATER LESSEQUAL GREATEREQUAL NOTIDENTICAL NOTEQUALS .
%left ADD SUB CONCAT .
Expand Down

0 comments on commit 779f9e0

Please sign in to comment.