Comments (3)
I have encountered this issue too with version 603 on Windows 7, compiled with
MS Visual Studio.
Original comment by [email protected]
on 28 Feb 2014 at 2:10
from picoc.
I think the bug is somewhere in the function ParseStatement() in the processing
of a switch token.
I found a fix, not sure if is the correct way to do by replacing line 809:
ParseBlock(Parser, TRUE, OldMode != RunModeSkip);
by:
ParseBlock(Parser, TRUE, (OldMode != RunModeSkip) && (OldMode !=
RunModeReturn));
Original comment by [email protected]
on 28 Feb 2014 at 2:20
from picoc.
Thanks Christopher. I've applied your fix and it passes the regression tests.
Fixed in r606.
Original comment by [email protected]
on 1 Mar 2014 at 4:25
- Changed state: Fixed
from picoc.
Related Issues (20)
- Ternary operator executes both sides
- r581 and later failing on OS X HOT 4
- <function> is out of scope -- OS X related HOT 2
- if ( somepointer) fails
- Can't assign struct coordinates from array initializer HOT 1
- Implement coma operator in for loops
- #define within a #include file from interactive mode crashes HOT 2
- Define macro inside a function block will crash picoc HOT 4
- Issue 192 revisited -- still broken in interactive mode. HOT 4
- Patch for /trunk/clibrary.c
- Patch suggestion
- Had very minor issue compiling on Solaris 10 spardc
- Github migration HOT 2
- Support for dirent.h
- Picoc -i on OSX gives SIGABRT
- Shift operators ignore the unsigned type HOT 1
- Variable scope not always respected
- Executions speed decreased HOT 1
- Migration to anoher project hosting site HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from picoc.