hmsl: support EOT to force BYE
[debian/pforth] / csrc / pfcompil.c
index 937e39ef831ff12d1483e2a5ca3fabe76b2440e2..a3f44f3b270d6ef40e4b41959387f3be0a595353 100644 (file)
@@ -1158,7 +1158,11 @@ cell_t ffRefill( void )
     /* ACCEPT is deferred so we call it through the dictionary. */
         PUSH_DATA_STACK( gCurrentTask->td_SourcePtr );
         PUSH_DATA_STACK( TIB_SIZE );
-        pfCatch( gAcceptP_XT );
+        ThrowCode throwCode = pfCatch( gAcceptP_XT );
+        if (throwCode) {
+            Result = throwCode;
+            goto error;
+        }
         Num = POP_DATA_STACK;
         if( Num < 0 )
         {