Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simulator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
letsgoING
ArduBlock Source
Simulator
Commits
c41a99e9
Unverified
Commit
c41a99e9
authored
4 years ago
by
letsgoINGStudent
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1 from letsgoINGStudent/dev_int16_Test
changed int to short (int16) in SimTypeInt
parents
945da5dd
d40406b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tec/letsgoing/ardublock/simulator/simcode/datatypes/SimTypeInt.java
+4
-4
4 additions, 4 deletions
...ing/ardublock/simulator/simcode/datatypes/SimTypeInt.java
with
4 additions
and
4 deletions
src/tec/letsgoing/ardublock/simulator/simcode/datatypes/SimTypeInt.java
+
4
−
4
View file @
c41a99e9
...
...
@@ -13,11 +13,11 @@ import tec.letsgoing.ardublock.simulator.simcode.SimCode;
*
*/
public
class
SimTypeInt
extends
SimCode
{
private
in
t
value
=
0
;
private
shor
t
value
=
0
;
private
SimCode
followBlock
;
public
SimTypeInt
(
int
_value
)
{
value
=
_value
;
value
=
(
short
)
_value
;
}
public
SimTypeInt
(
SimCode
block
)
{
...
...
@@ -28,7 +28,7 @@ public class SimTypeInt extends SimCode {
public
SimTypeInt
run
(
Arduino
_arduino
,
SimCode
functionHead
)
{
if
(
followBlock
instanceof
SimCode
)
{
SimTypeInt
ret
=
(
SimTypeInt
)
followBlock
.
run
(
_arduino
,
functionHead
);
value
=
ret
.
getValue
();
value
=
(
short
)
ret
.
getValue
();
}
return
new
SimTypeInt
(
value
);
...
...
@@ -40,7 +40,7 @@ public class SimTypeInt extends SimCode {
}
public
int
getValue
()
{
return
value
;
return
(
int
)
value
;
}
}
This diff is collapsed.
Click to expand it.
Anian Bühler
@buehlera
·
11 months ago
Owner
check
check
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment