repositories
/
TP_POO.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
878508f
)
TP2: cast double to int the compare method returned value.
author
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Mon, 5 Mar 2018 13:16:33 +0000
(14:16 +0100)
committer
Jérôme Benoit
<jerome.benoit@piment-noir.org>
Mon, 5 Mar 2018 13:16:33 +0000
(14:16 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP2/Image.java
patch
|
blob
|
blame
|
history
diff --git
a/TP2/Image.java
b/TP2/Image.java
index 007dd577d4547e1355b9ebe767789be91d7e0f0a..65d0929e69f9cadae3daa7096ad43b3f9d5d2edf 100644
(file)
--- a/
TP2/Image.java
+++ b/
TP2/Image.java
@@
-92,7
+92,7
@@
public class Image extends Forme implements Compactable,
}
public int compare(Image image1, Image image2) {
- return
image1.getpOri().getY() - image2.getpOri().getY(
);
+ return
(int)(image1.getpOri().getY() - image2.getpOri().getY()
);
}
}