pike.git/
src/
las.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-02-08
2021-02-08 14:20:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>
2c5ad58b3d837383737ab6cd24e3ea552d93aedd (
7
lines) (+
5
/-
2
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Fix lots of warnings about assigning zero.
3667:
NULL, 0, CDR(n)->type, 0, "Bad type in assignment."); } else {
-
if (c->lex.pragmas & ID_STRICT_TYPES) {
+
if (
(
c->lex.pragmas & ID_STRICT_TYPES)
&&
+
(CDR(n)->type != zero_type_string))
{
struct pike_string *t1 = describe_type(CDR(n)->type); struct pike_string *t2 = describe_type(CAR(n)->type); #ifdef PIKE_DEBUG
3814:
NULL, 0, f, 0, "Bad type in assignment."); } else {
-
if (c->lex.pragmas & ID_STRICT_TYPES) {
+
if (
(
c->lex.pragmas & ID_STRICT_TYPES)
&&
+
(f != zero_type_string))
{
struct pike_string *t1 = describe_type(f); struct pike_string *t2 = describe_type(CAR(n)->type); #ifdef PIKE_DEBUG