-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes operator #836
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3719d0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das mag zwar auf den ersten Blick so passen, aber was passiert, wenn dann $systemCode z.B. diesen Wert hat: 8052D
d3719d0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das klappt dann nicht :(
d3719d0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Da komme ich zu der Auffassung von gestern Abend, wenn ein „gemischter String“ es sein kann, dann
if ($version == 0 && $systemCode eq ‚0‘)
Nutzen weil da kann es eben auch 8052D sein.
d3719d0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So ähnlich :-)
Erster Grundsatz sollte sein: Nicht einfach ändern, sondern in der Praxis testen!
d3719d0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ja verstehe. Das war mir gestern nicht klar, dass in Systemcode auch Hex Werte stecken :)
Das besagte Beispiel sollte damit zu 0 == 0 werden was nicht gewünscht ist :)
d3719d0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich habe es angepasst, was das mit dem Testen in der Praxis angeht. Hätten wir schon einen test_SD_GL_devices, dann wäre es gut möglich gewesen, diesen Fehler durch die Tests zu finden :)