Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-17876][TIMOB-17929] Enable apps with 64 bit slice in titanium #6357

Merged
merged 18 commits into from Nov 18, 2014

Conversation

vishalduggal
Copy link
Contributor

Changes for
TIMOB-17876
TIMOB-17929

This PR also makes additional changes for the following
TIMOB-17927
TIMOB-18027

vishalduggal and others added 7 commits November 14, 2014 09:28
Turn on GCC_WARN_64_TO_32_BIT_CONVERSION flag and fix code for the same
Modules targeting the SDK with the new JSCore will need an updated path
to the headers
All supported architectures now will depend on the SDK/Xcode
combination used to build the application
Resolving merge conflicts here itself so it can be merged back into
master easily
@@ -101,7 +101,7 @@
TiValueRef length = TiObjectGetProperty(jsContext, obj, kTiStringLength, NULL);
double len = TiValueToNumber(jsContext, length, NULL);
NSMutableArray* resultArray = [[NSMutableArray alloc] initWithCapacity:len];
for (size_t c=0; c<len; ++c)
for (uint c=0; c<len; ++c)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable "c" is uint but "len" is long. I'm ok with this, but you're comparing two variable types here.

@pec1985
Copy link
Contributor

pec1985 commented Nov 17, 2014

Code reviewed. Testing now

@pec1985
Copy link
Contributor

pec1985 commented Nov 18, 2014

The CoverFlowView does not work. Found a fix, change all the NSUInteger to NSInteger in AFOpenFlowView.h and AFOpenFlowView.m
The main problem is in the - (void)setSelectedCover:(NSInteger)newSelectedCover forceCalculation:(BOOL)force function, specifically in:

    NSUInteger newLowerBound = MAX(0, newSelectedCover - COVER_BUFFER);
    NSUInteger newUpperBound = MIN(self.numberOfImages - 1, newSelectedCover + COVER_BUFFER);

@vishalduggal
Copy link
Contributor Author

Ready for review

@jonalter
Copy link
Contributor

FT pass

jonalter added a commit that referenced this pull request Nov 18, 2014
[TIMOB-17876][TIMOB-17929] Enable apps with 64 bit slice in titanium
@jonalter jonalter merged commit bd2ce38 into tidev:3_5_0_64-bit Nov 18, 2014
@vishalduggal vishalduggal deleted the timob-17876 branch November 18, 2014 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants