projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
In gmcs:
[mono.git]
/
mcs
/
mcs
/
literal.cs
diff --git
a/mcs/mcs/literal.cs
b/mcs/mcs/literal.cs
index 312e5c3fff7ab674b4ff4edff40b4bc92b0ff934..c7aae9204b0a775c51648643e8ade9d926fb42ca 100644
(file)
--- a/
mcs/mcs/literal.cs
+++ b/
mcs/mcs/literal.cs
@@
-116,7
+116,7
@@
namespace Mono.CSharp {
public override Constant Reduce(EmitContext ec, Type target_type)
{
- if (
target_type == TypeManager.string_type
)
+ if (
!TypeManager.IsValueType (target_type)
)
return new NullCast (this, target_type);
return null;