Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
c1c3b9fd
Commit
c1c3b9fd
authored
Mar 18, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type analysis for unicode strings
parent
b7beaf6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/analysis/type_analysis.cpp
src/analysis/type_analysis.cpp
+7
-1
No files found.
src/analysis/type_analysis.cpp
View file @
c1c3b9fd
...
...
@@ -452,7 +452,13 @@ private:
void
*
visit_slice
(
AST_Slice
*
node
)
override
{
return
SLICE
;
}
void
*
visit_str
(
AST_Str
*
node
)
override
{
return
STR
;
}
void
*
visit_str
(
AST_Str
*
node
)
override
{
if
(
node
->
str_type
==
AST_Str
::
STR
)
return
STR
;
else
if
(
node
->
str_type
==
AST_Str
::
UNICODE
)
return
typeFromClass
(
unicode_cls
);
RELEASE_ASSERT
(
0
,
"Unknown string type %d"
,
(
int
)
node
->
str_type
);
}
void
*
visit_subscript
(
AST_Subscript
*
node
)
override
{
CompilerType
*
val
=
getType
(
node
->
value
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment