• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

BASIC compiler/interpreter for PIC32MX/MZ-80K


Commit MetaInfo

Revisiónc4f03b40c018cd43243d75bcf046b8a2846ad4c5 (tree)
Tiempo2019-01-27 08:05:44
AutorKatsumi <kmorimatsu@sour...>
CommiterKatsumi

Log Message

Debug for not causing error by "ELSE" after integer.

Cambiar Resumen

Diferencia incremental

--- a/mips/megalopa/value.c
+++ b/mips/megalopa/value.c
@@ -134,7 +134,11 @@ char* get_simple_value(void){
134134 }
135135 // The next character should not be '.' or 'E'.
136136 // Or, it must be recognized as a float value.
137- if (b1=='.' || b1=='E') return ERR_SYNTAX;
137+ if (b1=='.') return ERR_SYNTAX;
138+ if (b1=='E') {
139+ b2=g_source[g_srcpos+1];
140+ if (b2==' ' || '0'<=b2 && b2<='9') return ERR_SYNTAX;
141+ }
138142 g_intconst=i;
139143 if (i&0xFFFF0000) {
140144 // 32 bit