Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356916 - Division and Modulus does not generate correctly
Summary: Division and Modulus does not generate correctly
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 08:01 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:19 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 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