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

Bug 356916

Summary: Division and Modulus does not generate correctly
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: greer
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Joseph Vincens CLA 2011-09-07 08:01:53 EDT
given the egl:
	function start()
		page, pagesize int;
		i1 int = page/pagesize;
 	end
The following code is generated:
		"start": function() {
			var page = 0;
			var pagesize = 0;
			var i1 = 0;
			i1 = egl.egl.lang.EInt32.fromEDecimal(((pagepagesize)));
		}
The generated code does not execute the / is missing between page/pagesize.
Comment 1 Joseph Vincens CLA 2011-09-07 09:00:49 EDT
The same applies for the % operator
Comment 2 Scott Greer CLA 2011-09-10 14:55:19 EDT
Fixed.
Comment 3 Joseph Vincens CLA 2011-09-12 08:36:10 EDT
verified