Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356220 - Modulo on SmallInt (possibly others)
Summary: Modulo on SmallInt (possibly others)
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Matt Heitz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 11:49 EDT by Scott Greer CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Greer CLA 2011-08-30 11:49:10 EDT
Looking at ESMallint.egl

	 * {@Operation %} Computes the remainder of dividing one number by another.
	 */
	static function $Modulus(lvalue ESmallint in, rvalue ESmallint in) returns (EDecimal) {@Operation{"%"}};

Two issues:
* The return type should be some form of integer
* The operation name should be Modulo
Comment 1 Matt Heitz CLA 2011-08-30 14:23:45 EDT
I renamed the methods to $Modulo and fixed the return types of the function in ESmallint, EInt, and EBigint.  The function was defined with the correct return type in the other .egl files.
Comment 2 Lisa Lasher CLA 2011-11-02 10:30:24 EDT
closing this defect for Scott