Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356220

Summary: Modulo on SmallInt (possibly others)
Product: z_Archived Reporter: Scott Greer <greer>
Component: EDTAssignee: Matt Heitz <mheitz>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mheitz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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